Firefox Tomorrow

http permissions policy directive

Permissions-Policy: ch-ua-high-entropy-values directive

View on MDN ↗

Limited availability

The HTTP Permissions-Policy header ch-ua-high-entropy-values directive controls whether or not the document is permitted to use the getHighEntropyValues() method to retrieve high-entropy user-agent data.

If the permission is not allowed, the method will only return the brands, mobile, and platform low-entropy data.

Syntax

Permissions-Policy: ch-ua-high-entropy-values=<allowlist>;
  • <allowlist>

Default policy

The default allowlist for ch-ua-high-entropy-values is *.

Examples

Restricting high-entropy data to specific origins

The following policy would only allow the current origin and two other specific origins to retrieve high-entropy data.

Permissions-Policy: ch-ua-high-entropy-values=("self https://a.example.com" "https://b.example.com")

You could then embed one of the two other origins:

<iframe src="https://a.example.com" allow="ch-ua-high-entropy-values"></iframe>

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also