Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use IndexedDB between two pages on different domains?

I have created a IndexdDB object store in my one page (Let object store name is "ShopStore"). Now I want to open the same object store from a diffirent page. Is it possible?

My two web pages are on different domain.

like image 992
rohit gora Avatar asked May 26 '14 16:05

rohit gora


1 Answers

According to MDN you can't do cross domain access to an indexedDB (for security reason, you don't want that another website modify your client database):

IndexedDB follows a same-origin policy. So while you can access stored data within a domain, you cannot access data across different domains.

See also:

  • cross domain reading data from browser storage
  • Is it possible for a Chrome extension to access an IndexedDB database created by a specific domain?
like image 65
Anthony Bobenrieth Avatar answered Sep 19 '22 14:09

Anthony Bobenrieth