Storage Access API
Checking compatibility...
The Storage Access API allows embedded content to check if it has access to its unpartitioned cookies and request access if needed. This is particularly useful for third-party content that needs to maintain state across different sites.
Checking Storage Access
Find out if your embedded content can access its cookies. This example shows how to check if your content has permission to use cookies when it's displayed on another website, which is useful before attempting operations that would otherwise fail.
=
=
=
=
=
=
Output
Click Run to see output...
Requesting Storage Access
Ask for permission to access cookies when embedded on another site. This example demonstrates how to request cookie access for embedded content, showing how to handle both when users grant or deny permission through the browser's permission prompt.
=
=
=
=
=
=
Output
Click Run to see output...