2017-03-17 11 views
0

xxx.com yyy.comのindexeddbにアクセスする方法。
これらの2つのドメインには同じスクリプトが含まれています 可能です。"Cross Domain IndexedDB"は可能ですか?

Iframeテクニックで使用できますか?

+3

[我々はIndexdDBは、2つのページ間の店舗をオブジェクトを使用できます]の可能な重複(http://stackoverflow.com/questions/23874290/can-we-use-indexddb-objects-stores-between-two-pages ) - TL; DR、いいえ、それが起こることを許すのは恐ろしくないからです。 –

答えて

0
You can do it with iframe technique (loading iframe with same domain in different domains) 

example: 
myStorageIframe.com 
a.com 
b.com 
c.com 

you can add the iframe to each domain, and store/get items with post-message. 
each domain will communicate with the frame, and by this the storage will be shared between all domains. 

The pitfalls of this is that in Safari it will make a lot of problems, since their security policy is very strict with cross-domain & third-party storages. 
関連する問題