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.