webxdc / hello

Sample project with a simple implementation of the webxdc read and write APIs
The Unlicense
29 stars 7 forks source link

opening index.html via file: does not work on chrome/safari #4

Closed r10s closed 2 years ago

r10s commented 2 years ago

the communication between simulated peers do work on firefox using localhost or file:.

for chrome/safari, this only works for localhost currently.

check, if we can improve that, otherwise document the issue.

r10s commented 2 years ago

reason seems to be different same-origin-policies used on firefox and chrome/safari:

only windows with the same origin can access the other window objects as we're doing currently. postMessage seems not be able to fix that, however, localStorage works.