braze-inc / braze-web-sdk

Public repo for the Braze Web SDK
https://www.braze.com
Other
71 stars 25 forks source link

appboy.openSession throws an exception when in an Iframe on safari #39

Closed dpix closed 6 years ago

dpix commented 6 years ago

I'm seeing the error described in this stackoverflow question when calling appboy.openSession: https://stackoverflow.com/questions/39712455/indexdb-dom-exception-18-security-ios-10-iframe

As part of Safari's "Intelligent Tracking Prevention" they basically disable third party cookies in an Iframe when the user has not visited the page outside of an Iframe previously. Appears that this is also the case for access for IndexedDB.

The MDN article does note:

Third party window content (e.g.