Storage Access API Demo

Set Cookie screen

Using this demo

This is a copy of which calls hasStorageAccess first to show it consumes the interaction.

  • Make sure you're viewing this demo site at top-level and not framed within glitch.com.
  • Ensure third-party cookies are turned off:
    • For Chrome this is done by setting: chrome://flags/#test-third-party-cookie-phaseout
    • Restart your browser to make that flag takes effect.
    • For Firefox and Safari this is already the default.
  • Set the value of the foo cookie using this form:

  • Then, open this link and confirm you can read this cookie you just, when this origin is embedded, on another site when using the Storage Access API.