Can we use the value of localStorage from another domain?
P粉2310799762023-08-24 21:33:16
0
1
569
<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>
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.
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. :)