Spec-Zone.ru › HTTP

Headers: Permissions-Policy.display-capture

Permissions-Policy: display-capture directive

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Want more support for this feature? Tell us why.

  • Learn more
  • See full compatibility
>

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTTP Permissions-Policy header display-capture directive controls whether or not the document is permitted to use Screen Capture API, that is, getDisplayMedia() to capture the screen's contents.

If display-capture is disabled in a document, the document will not be able to initiate screen capture via getDisplayMedia() and will throw a NotAllowedError exception.

Syntax

Permissions-Policy: display-capture=<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 display-capture is self.

Specifications

Specification
Screen Capture>
# permissions-policy-integration>

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
display-capture 94 94 No 80 No 94 No 66 No 17.0 94 No

See also

  • Permissions-Policy header
  • Permissions Policy
  • Screen Capture API
  • Using the Screen Capture API

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy/display-capture

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API