Can we use the value of localStorage from another domain?
P粉231079976
P粉231079976 2023-08-24 21:33:16
0
1
553
<p>I am storing a value in a domain's local storage. If I access both domains from the same browser, can I retrieve the value from the other domain? </p>
P粉231079976
P粉231079976

reply all(1)
P粉771233336

No, you cannot use local storage of one domain for other domains. Local storage is domain based. You cannot read or write from local storage on a different domain, even on its subdomains. You can use it via an Iframe on a subdomain. Please read this article Cross-domain LocalStorage for detailed explanation.

Hope it helps you. :)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template