AWS Discussion Forum

Full Version: Unable to Resolve CORS issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have created an API which is being accessed from Web application hosted in S3. The request for both the api endpoint and S3 will go through CloudFront. I have enabled CORS in both S3 and API endpoint. I even enabled forward cookie header in Cloudfront. But, I am still facing CORS issue. 


Request header field x-correlation-id is not allowed by Access-Control-Allow-Headers in preflight response.

Can someone help out on how to resolve this error.
(28-08-2018, 12:32 PM)phanikumar Wrote: [ -> ]Request header field x-correlation-id is not allowed by Access-Control-Allow-Headers in preflight response.

do you have " x-correlation-id" mentioned in the "Access-Control-Allow-Headers" in your response header code?

Also, please see the header requests/responses in the browser's developer console window for more debug information.