Can we use the value of localStorage from other domains?

No, you can’t use the local storage of one domain to other domain.
Local Storage is domain based. You can’t read or write from localstorage that’s on different domain even on it’s subdomain.
you can use it via Iframe on your subdomain.
Please go through this article Cross-Domain LocalStorage for detailed explanation.

Hope it’ll help. 🙂

Leave a Comment