Safari 10.1: XMLHttpRequest with query parameters cannot load due to access control checks

后端 未结 6 1795
一个人的身影
一个人的身影 2020-12-30 20:36

When trying a CORS request on Safari 10.1, on an URL which includes query parameters (e.g. https://example.com/api?v=1), Safari says

6条回答
  •  天涯浪人
    2020-12-30 20:52

    If anyone comes across this error, it just occurred in the application I was building. In my case, it turned out to be a trailing / in the uri, which caused a 301 response, which was for some reason interpreted by Safari as a 500 response.

提交回复
热议问题