Permissions-Policy: captured-surface-control directive
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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.
If captured-surface-control
is disabled in a document, the above methods will throw a NotAllowedError
exception.
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
No specification found
No specification data found for http.headers.Permissions-Policy.captured-surface-control
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.