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

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. #2

Open
1uba opened this issue Jun 19, 2014 · 2 comments

Comments

@1uba
Copy link

1uba commented Jun 19, 2014

Hello, I have this problem.

xdLocalStoragePostMessageApi.js:21:

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. 

I tried to use it crossdomain. Domain1 inits xdLocalStorage with option:

iframeUrl:'http://Domain2/index.html',

Any solution?

@1uba
Copy link
Author

1uba commented Jun 19, 2014

This error is thanks to Chrome content setting:
Block third-party cookies and site data

Is possible to implement third party cookies detection or add some fallback for crossdomain usage?

@ofirdagan
Copy link
Owner

Intresting.. I've managed the re produce. The question is was is the desired functionality in this case?
I can't fallback to use cookies because it will lose all of the data that was already saved on the iframe's localstorage.
What do you mean by third party cookies detection? let the user know he needs to change its settings?

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