Back to Content

Permissions-Policy: hid directive

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

latest971 B
Original Source

{{SeeCompatTable}}

The HTTP {{HTTPHeader("Permissions-Policy")}} header hid directive controls whether the current document is allowed to use the {{domxref("WebHID API", "WebHID API", "", "nocode")}} to connect to uncommon or exotic human interface devices such as alternative keyboards or gamepads.

Specifically, where a defined policy blocks WebHID usage, the {{domxref("Navigator.hid")}} property will not be available.

Syntax

http
Permissions-Policy: hid=<allowlist>;
  • <allowlist>

Default policy

The default allowlist for hid is self.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also