Search code examples
javascriptgoogle-chromegoogle-chrome-devtoolsdevtoolssession-storage

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.


Solution

  • 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.