cross-domain-local-storage icon indicating copy to clipboard operation
cross-domain-local-storage copied to clipboard

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

Open 1uba opened this issue 11 years ago • 2 comments

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 avatar Jun 19 '14 15:06 1uba

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?

1uba avatar Jun 19 '14 16:06 1uba

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?

ofirdagan avatar Jun 21 '14 09:06 ofirdagan