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 CaptureController.forwardWheel, CaptureController.increaseZoomLevel, CaptureController.decreaseZoomLevel, and CaptureController.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.
- : A list of origins for which permission is granted to use the feature. See
Default policy
The default allowlist for captured-surface-control is self.
Specifications
Browser compatibility
See also
- Permissions-Policy header
- Permissions Policy
- Screen Capture API
- Using the Captured Surface Control API
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
