Reputation: 12159
Is it possible to access IndexedDB from outside the browser, or from outside the domain that created it?
I'm thinking about the case of storing data to some IndexedDB related to some specific domain, as it is always the case, then gaining access to that data, or migrating it to another domain, after the first domain ceases to exist or ceases to be reliable.
Upvotes: 6
Views: 3610
Reputation: 12979
No, this is not possible for security reasons. Only the website that created the IndexedDB instance can read or modify the data. MDN article In order to achieve something like this, you would need to upload the data from the client to your server, store that data, and then send that data back to the clients machine from the new domain.
What you're trying to achieve sounds a bit fishy. There's no easy, reliable way to do what you're wanting because there probably aren't many legitimate use cases.
Upvotes: 3