Permissions-Policy: encrypted-media
Experimental:This is anexperimental technology
Check theBrowser compatibility tablecarefully before using this in production.
The HTTPPermissions-Policy
headerencrypted-media
directive controls whether the current document is allowed to use theEncrypted Media ExtensionsAPI (EME).
Specifically, where a defined policy blocks use of this feature, thePromise
returned byNavigator.requestMediaKeySystemAccess()
will reject with aDOMException
of typeSecurityError
.
Syntax
http
Permissions-Policy: encrypted-media=<allowlist>;
<allowlist>
-
A list of origins for which permission is granted to use the feature. See
Permissions-Policy
> Syntaxfor more details.
Default policy
The default allowlist forencrypted-media
isself
.
Specifications
Specification |
---|
Encrypted Media Extensions #permissions-policy-integration |
Browser compatibility
BCD tables only load in the browser