AWS Discussion Forum
Unable to Resolve CORS issue - Printable Version

+- AWS Discussion Forum (https://letstalkaws.com)
+-- Forum: Q & A (https://letstalkaws.com/forum-10.html)
+--- Forum: Developer Help (https://letstalkaws.com/forum-24.html)
+--- Thread: Unable to Resolve CORS issue (/thread-20.html)



Unable to Resolve CORS issue - phanikumar - 28-08-2018

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.


RE: Unable to Resolve CORS issue - fzs - 28-08-2018

(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.