Access IndexedDB from different domain with CORS?

Is it somehow possible with CORS to access data in an IndexedDB on domain A from domain B. I guess the answer to this question pretty much also applies to localStorage/sessionStorage.


You can't access the same database from multiple domains, the access scope is limited to html origin.

html_Origin = protocol + "://" + url + ":" + port + "/";

Additional explanation by Raymond Camden: CORS is about http requests to different servers. IndexedDB isn't on a different server - it is on the client.


IndexedDB API is not accessible from different origin by security design. However, you can communicate and transfer data between cross origin documents via postMessage API.