Friday, 26 August 2022

Cross Tab communication between iframe and different tab in Safari?

There are multiple questions about Cross-Tab and Cross-Domain communication but I'm asking specifically about Safari. That browser since version 7 added blocking of 3rd party tracking to iframes. So localStorage event and BroadcastChannel don't work on that browser when using inside an iframe.

My question is: are there any other solutions to cross-domain communication (between iframe and page with the same origin in a different tab) for Safari?

In my library sysend.js I've added a disclaimer that the cross-domain (same with any other library) doesn't work on Safari 7+. But maybe there is some trick to making that communication work.



from Cross Tab communication between iframe and different tab in Safari?

No comments:

Post a Comment