Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Safari by default #5

Open
JarnoLeConte opened this issue Sep 20, 2015 · 2 comments
Open

Not working with Safari by default #5

JarnoLeConte opened this issue Sep 20, 2015 · 2 comments

Comments

@JarnoLeConte
Copy link

Safari doesn't allow cross domain access to localStorage by default, which means this package don't solve the problem for Safari users. Only when the browser setting 'cookies and other website data' is set to 'allow always' it will work well.

It seems hard to find a work around.

@AndrewMagliozzi
Copy link
Contributor

It appears it's only a problem with safari on localhost. It works fine in
production.

On Sun, Sep 20, 2015 at 6:31 PM, Jarno Le Conté [email protected]
wrote:

Safari doesn't allow cross domain access to localStorage by default, which
means this package don't solve the problem for Safari users. Only when the
browser setting 'cookies and other website data' is set to 'allow always'
it will work well.

It seems hard to find a work around.


Reply to this email directly or view it on GitHub
#5.

@JarnoLeConte
Copy link
Author

Even in production, it doesn't work.

Safari Settings

NOT working (using default settings)

settings that will not work

working (using modified settings)

working settings

Problem

Although the cross-origin setup is correct and no errors appear in the console, the iframe just see an empty localStorage. In Safari (using the default settings) a single site have different instance of localStorage when loaded in an iframe than loaded in the browser directly. The localStorage isn't shared in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants