jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 270 forks source link

Safari iframe blocks session creation #114

Closed clicktrend closed 9 years ago

clicktrend commented 9 years ago

I faced the problem that Safari blocks creation of session through iframe. Cookie information do not reach the iframe page. Therefore no session use possible.

Here is a (pseudo) workaround may help understanding the problem http://measurablewins.gregjxn.com/2014/02/safari-setting-third-party-iframe.html

jpillora commented 9 years ago

Blocking of 3rd party cookies is indeed a problem, and passing information through the URL is quite hacky. #89 attempts to solve this with the ability to set master and slave cookie headers, which then must be converted back to Cookie on the server, depending on which domain you're interested in.