[英]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).我想知道如何以编程方式更改控制台的 javascript 上下文(附加上下文菜单的图像)。
I would like to do this to programmatically access session storage of a site while on a separate domain.我想这样做以在单独的域上以编程方式访问站点的 session 存储。
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. sessionStorage
的定义范围仅限于当前来源,并且没有跨域机制可以让您访问不同来源的商店。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.