I have deployed a lambda, which in itself returns an 'Access-Control-Allow-Origin': '*'
header in it's response.
I call it from an API Gateway. When calling the API gateway URL, the CORS configuration is fine.
I placed CloudFront in front of the API, however now I am unable to access the API as the CORS configuration seems to be overridden by CloudFront, and I am not sure where to add custom headers in CloudFront.
How do you enable CORS inside CloudFront?