Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Using localStorage and sessionStorage in embedded app - now blocked

Using localStorage and sessionStorage in embedded app - now blocked

mfurniss
Visitor
2 0 2

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 5 (5)

hacketyapps
Shopify Partner
44 2 5

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
Visitor
2 0 2

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

ertugrulhadzhao
Visitor
2 0 0

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

fnbuild
Shopify Partner
6 0 3

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.

vladanmikic
Shopify Partner
2 0 0

Is there a workaround for this issue?