Accessing third party cookies in Firefox

后端 未结 4 1848
闹比i
闹比i 2021-02-04 15:06

We\'re building a Facebook application here at work, using the iframe method. For the application to work, it needs to set cookies from within the iframe.

Safari has thi

4条回答
  •  不要未来只要你来
    2021-02-04 15:56

    One technique is to do a background POST to a hidden iframe on the initial page load using JavaScript. As soon as the POST response successfully returns, you'll be able to set cookies. This removes the need to affect user experience (an interstitial to force interaction is another technique). Some more thoughts and sample code here: http://gist.github.com/586182

提交回复
热议问题