How do I set cookies from outside domains inside iframes in Safari?

前端 未结 5 1632
梦毁少年i
梦毁少年i 2020-12-08 10:55

From the Apple developer faq

Safari ships with a conservative cookie policy which limits cookie writes to only the pages chosen (\"navigated to\

5条回答
  •  醉梦人生
    2020-12-08 11:16

    One solution (a bit messy) might be to have the parent page check for the presence of the cookie and if the cookie is not present run an AJAX call to a script on the iframe page's domain which sets the cookie.

提交回复
热议问题