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

前端 未结 5 1675
梦毁少年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:27

    This is a common issue with facebook apps displayed in Safari. The way many (including myself) have dealt with this is to have the iframed page POST to itself. When a page has posted form data, it is then allowed to set cookies. In the end, it works with a 1 page refresh, which could even be your user login POST.

提交回复
热议问题