How to fix iOS 12 Safari Cors preflight error?

后端 未结 3 1700
名媛妹妹
名媛妹妹 2021-01-06 08:47

I am trying to understand CORs a little better as several users of our web app are complaining since they upgraded to iOS 12 they are receiving preflight errors.

The

3条回答
  •  情深已故
    2021-01-06 09:12

    If it says Header not allowed in "Access-Control-Allow-Headers", You can fix it by adding the specific Header from the server side, where you send "Access-Control-Allow-Headers". because wildcard is not working i.e “Access-Control-Allow-Headers”: “*"

    It should be “Access-Control-Allow-Headers”: “*, Accept, Content-Type, Content-Length, Accept-Encoding, CUSTOM-ALLOWED-HEADER”

提交回复
热议问题