Back to Content

Permissions-Policy: usb directive

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

latest872 B
Original Source

{{SeeCompatTable}}

The HTTP {{HTTPHeader("Permissions-Policy")}} header usb directive controls whether the current document is allowed to use the {{domxref("WebUSB API", "WebUSB API", "", "nocode")}}.

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

Syntax

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

Default policy

The default allowlist for usb is self.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also