Back to Content

Permissions-Policy: encrypted-media directive

files/en-us/web/http/reference/headers/permissions-policy/encrypted-media/index.md

latest1.1 KB
Original Source

{{SeeCompatTable}}

The HTTP {{HTTPHeader("Permissions-Policy")}} header encrypted-media directive controls whether the current document is allowed to use the Encrypted Media Extensions API (EME).

Specifically, where a defined policy blocks use of this feature, the {{jsxref("Promise")}} returned by {{domxref("Navigator.requestMediaKeySystemAccess","Navigator.requestMediaKeySystemAccess()")}} will reject with a {{domxref("DOMException")}} of type SecurityError.

Syntax

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

Default policy

The default allowlist for encrypted-media is self.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also