CORS request not working in Safari

后端 未结 13 1469
忘掉有多难
忘掉有多难 2020-11-27 06:04

I am making a CORS xhr request. This works fine in chrome, however when I run in safari I get an \'Can not load ---- access not allowed by Access-control-allow-origin\'.

13条回答
  •  眼角桃花
    2020-11-27 06:52

    We had the exact same issue on Cloudfront (backed by s3 bucket) and the solutions given here did not help. The problem was with Cloudfront clipping some headers. This resolved it for us:

    https://aws.amazon.com/premiumsupport/knowledge-center/no-access-control-allow-origin-error/

    Putting it here just in case someone comes across this solution in future.

提交回复
热议问题