28-08-2018, 12:32 PM
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.
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.