Is there a workaround for Safari iOS “Prevent Cross Site Tracking” option, when issuing cookies from API on different domain?

后端 未结 2 1754
悲&欢浪女
悲&欢浪女 2021-01-04 21:30

Is there any workarounds that allows me to keep the \"Prevent Cross Site Trackng\" option enabled (as it is by default, so every user will have it on), and issue CORS cookie

2条回答
  •  庸人自扰
    2021-01-04 22:23

    I'd suggest puting both your website and the api on the same domain, e.g. https://web.mydomain.com and https://api.mydomain.com. This shouldn't be too difficult to implement - I haven't found any simple technical solutions online yet that will force Safari on iOS to allow this without changing the settings.

提交回复
热议问题