简体   繁体   中英

How can I access the sessionStorage key-value pairs of a domain other than current page?

I would like to know how to programmatically change the javascript context of the console (image of the context menu attached).

I would like to do this to programmatically access session storage of a site while on a separate domain.

You can't. sessionStorage is by definition scoped to the current origin, and there is no cross-origin mechanism by which you can access the store for a different origin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM