Back to Content

Permissions-Policy: captured-surface-control directive

files/en-us/web/http/reference/headers/permissions-policy/captured-surface-control/index.md

latest1.5 KB
Original Source

{{SeeCompatTable}}

The HTTP {{HTTPHeader("Permissions-Policy")}} header captured-surface-control directive controls whether or not the document is permitted to use the Captured Surface Control API. Specifically, the {{domxref("CaptureController.forwardWheel", "forwardWheel()")}}, {{domxref("CaptureController.increaseZoomLevel", "increaseZoomLevel()")}}, {{domxref("CaptureController.decreaseZoomLevel", "decreaseZoomLevel()")}}, and {{domxref("CaptureController.resetZoomLevel", "resetZoomLevel()")}} methods are controlled by this directive.

The promise returned by the API's main methods will reject with a NotAllowedError {{DOMxRef("DOMException")}} if the permission is not allowed.

Syntax

http
Permissions-Policy: captured-surface-control=<allowlist>;
  • <allowlist>

Default policy

The default allowlist for captured-surface-control is self.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also