Questions tagged [storage-access-api]

23 questions
17
votes
0 answers

Reading cookies with "Samesite=None;Secure" from iframe in Safari 13

I have an iframe where I use cookie authentication. The cookie is set normally on my domain when users log in. I use SameSite=None;Secure. The problem is that when a third party website embeds an iframe from my domain, my authentication cookie is…
tomschmidt
  • 382
  • 1
  • 2
  • 12
13
votes
1 answer

Cannot set cookie in iframe using the Storage Access API on Safari

I have an iframe on my page. As Safari blocks 3rd party cookies, I am trying to use the Storage Access API as suggested here under 'Developer Guidance': https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/. I have copied the…
lunr
  • 5,159
  • 4
  • 31
  • 47
12
votes
1 answer

Firefox Storage Access API denies local storage after successful requestStorageAccess() call

I want to test the new Firefox Storage Access API to allow 1st party storage (cookie, local storage, indexeddb, ...) to an iframe of a different domain (but still under my control). Parent Markup / code …
elbartus
  • 303
  • 2
  • 11
5
votes
1 answer

How to access first party cookies after Storage API granted it?

I investigate a possibility to use Storage Access API https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API/ to get an access to first party cookies from 3rd iframe. The problem is that despite Storage Access API gave me an access,…
5
votes
2 answers

How to debug Safari ITP 2.0 requestStorageAccess failure

I'm currently working on making my code compatible with Safari ITP 2.0. In a method that is triggered on an onClick, I have code similar to the code below: if (document.hasStorageAccess && document.requestStorageAccess) { console.log('On Safari…
Arya
  • 1,382
  • 2
  • 15
  • 36
3
votes
0 answers

Revert the given permission to Storage Access API on Safari

I am working with Storage Access API on Safari. For testing/debugging purposes, I want to take back the permission that I've previously given. Currently, I keep creating new loopback IPs which is a bit annoying (see screencap below), also I need to…
Kerem atam
  • 2,387
  • 22
  • 34
3
votes
1 answer

Safari ITP 2.0 Storage Access API - Trouble Nesting requestStorageAccess in hasStorageAccess - Non Nested Works

I'm currently trying to implement calling the storage access API, but am having trouble nesting the call to requestStorageAccess in hasStorageAccess. Here is an outline of the code - it's fairly standard: requestStorageAccessAndServe() { let…
Arya
  • 1,382
  • 2
  • 15
  • 36
2
votes
0 answers

Safari iframe hasStorageAccess, but outputs a different localStorage from it's non-iframed url

I have an iframe which I'm attempting to integrate the Storage Access API on https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API The html for the iframe is as follows: