Dan Van Brunt
05/19/2022, 6:18 PMCF -> APIG -> Lambda
but only the first one hits the authorizer and function the other only logs out in APIG but never beyond that.
This WORKS POST /api/event/submit
This does NOT GET /api/event/submit-prev
This is the behaviour to point traffic to the api from cloudfront
cfDistribution.addBehavior('/api/event/*', new cfOrigins.HttpOrigin(eventApiDomain), {
allowedMethods: cf.AllowedMethods.ALLOW_ALL,
viewerProtocolPolicy: cf.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
cachePolicy: cf.CachePolicy.CACHING_DISABLED,
compress: false,
})
Frank
resultsCacheTtl
to “0 seconds” temporarily.Dan Van Brunt
05/19/2022, 7:37 PM