Using localStorage and sessionStorage in embedded app - now blocked

mfurniss
New Member
2 0 0

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.

Replies 3 (3)
hacketyapps
Excursionist
36 2 4

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.

mfurniss
New Member
2 0 0

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

ertugrulhadzhao
New Member
2 0 0

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