CORS request not working in Safari

后端 未结 13 1462
忘掉有多难
忘掉有多难 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:31

    I just had a similar problem, CORS error. It would work in Firefox & Chrome but not Safari 10.

    Turned out we needed to put the trailing slash on the JSON URL.

提交回复
热议问题