Using localStorage and sessionStorage in embedded app - now blocked

Hi,

Chrome’s 3rd party cookie blocking also prevents access to localStorage or sessionStorage. This basically means our app can’t function in an embedded iFrame.

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

Do Shopify have a solution for this?

Thanks,

Matt.

2 Likes

No, if you’re using an embedded app there’s no way around it. You’ll have to find a workaround. Our app wouldn’t get approved unless we removed it.

Apps not embedded don’t have this issue.

Hi. Thanks for the reply. What was your work around?

i have the same issue, is there anybody knows how to solve it?

Thanks! This is probably what’s happening to my embedded app.

Strangely localStorage works on my dev store, but upon submission, they see a 500 error. I think this must be it.

1 Like

Is there a workaround for this issue?