0

I'm using chrome, and I have a page with an iframe inside it, with a certain source code in it. Both use their own cookies or local storage, there's no cookie in common. Now, if i disable third party cookies, i got the following error:

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

I want to solve this problem assuming my final users won't change their browser settings.

I tried to use the sandbox attribute on my iframe, like this: <iframe src="https://example.com" sandbox="allow-modals allow-popups allow-scripts allow-same-origin"> but nothing changed

Is there a way to solve this just changing the iframe or the inner page called by the external page?

0 Answers0