Firefox Tomorrow

http permissions policy directive

Permissions-Policy: storage-access directive

View on MDN ↗

Limited availability

The HTTP Permissions-Policy header storage-access directive controls whether a document loaded in a third-party context (i.e., embedded in an <iframe>) is allowed to use the Storage Access API to request access to unpartitioned cookies.

This is relevant to user agents that by default block access to unpartitioned cookies by sites loaded in a third-party context to improve privacy (for example, to prevent tracking).

Specifically, where a defined policy blocks use of this feature, requestStorageAccess() calls will return a Promise that rejects with a DOMException of type NotAllowedError.

Syntax

Permissions-Policy: storage-access=<allowlist>;
  • <allowlist>

Default policy

The default allowlist for storage-access is *.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also