Accessing indexed DBs from different domains using CORS?

Somehow it's possible with CORS to access data in IndexedDB on domain A from domain B. I think the answer to this question pretty much applies to localStorage / sessionStorage as well.

+3
local-storage cors indexeddb


source to share


2 answers


You cannot access one database from multiple domains, the scope is limited to html origin .

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

      



Additional explanation from Raymond Camden : CORS is HTTP requests to different servers. IndexedDB is not on another server - it is on the client.

+3


source to share


The API with indexDB is not available from various security design sources. However, you can transfer and transfer data between cross-origin documents via the postMessage API .



+1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics