Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

requestStorageAccess() API

  • Akukho zimpendulo
  • 0 zinale nkinga
  • 6 views
more options

Hi,

I'm working on a website which uses third-party cookies for user login. But, recently, firefox has made Total Cookie Protection default making third-party cookies obsolete. To gain access to unpartitioned cookie jar, the documentation (https://developer.mozilla.org/en-US/docs/Web/API/Document/requestStorageAccess) tells that we have to call requestStorageAccess() API on a "user generated event". With this as a limitation, I have to add an additional button to create an user generated event. This is affecting my website's user experience.

Is there a way / hack to call this API without an user generated event like a button click.

Thanks in advance

Hi, I'm working on a website which uses third-party cookies for user login. But, recently, firefox has made Total Cookie Protection default making third-party cookies obsolete. To gain access to unpartitioned cookie jar, the documentation (https://developer.mozilla.org/en-US/docs/Web/API/Document/requestStorageAccess) tells that we have to call requestStorageAccess() API on a "user generated event". With this as a limitation, I have to add an additional button to create an user generated event. This is affecting my website's user experience. Is there a way / hack to call this API without an user generated event like a button click. Thanks in advance

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.