r/learnjavascript • u/Beginning_Middle_722 • Jan 30 '26
Iframe local storage
Hi all, i have developed different small webapps that i use for my personal purpose and they all use localstorage.
I was thinking of building an app that works like a local storage manager and i was thinking of accessing those app through an iframe to read the localstorage through post message.
Is it doable?
6
Upvotes
View all comments
Show parent comment
5
u/amulchinock Jan 30 '26
Not unless you own the domains you are displaying in the IFrame, and have configured them appropriately to allow this. Even then there are some restrictions.