3 ms·
this exists on safari, edge and FF https://developer.mozilla.org/en-US/docs/Web/API/Document/requestStorageAccess https://developer.mozilla.org/en-US/docs/Web/
by asddubs 6y ago
this exists on safari, edge and FF
https://developer.mozilla.org/en-US/docs/Web/API/Document/requestStorageAccess https://developer.mozilla.org/en-US/docs/Web/API/Document/re...
https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API https://developer.mozilla.org/en-US/docs/Web/API/Storage_Acc...
on safari, it's basically the only way to get access to third party cookies in an iframe since safari 13. I wish other browsers (chrome) would also enable this when third party cookies are disabled. On FF I think the rule is that you have to interact with the site beforehands and you get access automatically, failing that you can use this API. No idea how it works in edge
- avodonosov 6y agoWow, interesting. So, to access 3rd party cookies I need to access a document DOM object that has that 3rd party origin? But such a document is not always available, is it... Looks like the use cases targeted by that proposal are limited to an embedded iframe that wants to access its own domain cookies. I was thinking also about arbitrary doman. Like requestStorageAccess(targetOrigin, keys...)
- asddubs 6y agoYeah, it's useful for e.g. embedded like buttons or comment forms on external sites or sites with user hosted content (on a different TLD)