Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to Resolve CORS issue
#1
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.
Reply
#2
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)