Permissions-Policy: encrypted-media

Experimental:This is anexperimental technology
Check theBrowser compatibility tablecarefully before using this in production.

The HTTPPermissions-Policyheaderencrypted-mediadirective controls whether the current document is allowed to use theEncrypted Media ExtensionsAPI (EME).

Specifically, where a defined policy blocks use of this feature, thePromisereturned byNavigator.requestMediaKeySystemAccess()will reject with aDOMExceptionof typeSecurityError.

Syntax

http
Permissions-Policy: encrypted-media=<allowlist>;
<allowlist>

A list of origins for which permission is granted to use the feature. SeePermissions-Policy> Syntaxfor more details.

Default policy

The default allowlist forencrypted-mediaisself.

Specifications

Specification
Encrypted Media Extensions
#permissions-policy-integration

Browser compatibility

BCD tables only load in the browser

See also