problems with Cross Origin Resource Sharing: both OSX Safari and iOS Safari fail after preflight request

前端 未结 1 1878
予麋鹿
予麋鹿 2021-02-14 17:18

Recently I come into a trouble with CORS(Cross Origin Resource Sharing) request on Safari, both OSX and iOS, while the same request works perfectly on Chrome and Firefox. I foll

相关标签:
1条回答
  • 2021-02-14 18:01

    It's all about Safari add origin to OPTIONS request header Access-Control-Request-Headers.

    So to fix it you should enable this header in Access-Control-Allow-Headers in response.

    PS: see similar question CORS request not working in Safari

    0 讨论(0)
提交回复
热议问题