MDN self-hosted library · e01.org

Permissions-Policy: captured-surface-control directive

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

no runnable cells http-permissions-policy-directive upstream source

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

The promise returned by the API's main methods will reject with a NotAllowedError DOMException if the permission is not allowed.

Syntax

Permissions-Policy: captured-surface-control=<allowlist>;
  • <allowlist>
  • : A list of origins for which permission is granted to use the feature. See Permissions-Policy > Syntax for more details.

Default policy

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

Specifications

Browser compatibility

See also