Why my data saved in origin storage client domain?
floinay opened this issue · 6 comments
floinay commented
Hello, i have code on website: https://yeda-crossdomain-storage.web.app/
const originStorage = new OriginStorage({
broadcastChanges: true
});
and i have client code:
const client = new OriginStorageClient({
uri: 'https://yeda-crossdomain-storage.web.app',
storageOptions: { name: 'yeda_auth' },
});
But all saved data stored on my client domain.
Storage website data always empty.
unadlib commented
it may be a cross-domain storage setting issues, I'm testing in the current repo's example without any issues.
floinay commented
any idea what is wrong with my storage?
unadlib commented
floinay commented
floinay commented
i just realized that it only works if the domains are open in the browser at the same time