Back to Content

Permissions-Policy: window-management directive

files/en-us/web/http/reference/headers/permissions-policy/window-management/index.md

latest1.2 KB
Original Source

{{SeeCompatTable}}

The HTTP {{HTTPHeader("Permissions-Policy")}} header window-management directive controls whether or not the current document is allowed to use the Window Management API to manage windows on multiple displays.

Where this policy forbids use of the API:

  • The {{jsxref("Promise")}} returned by the {{domxref("Window.getScreenDetails()")}} method will reject with a NotAllowedError exception.
  • The {{domxref("Screen.isExtended", "Window.screen.isExtended")}} property will always return false.

Syntax

http
Permissions-Policy: window-management=<allowlist>;
  • <allowlist>

Default policy

The default allowlist for window-management is self.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also