en-US

Control use of the WebHID API

Supported on: Microsoft Edge version 100, Windows 7 or later

Registry

HKLM Software\Policies\Microsoft\Edge
HKCU Software\Policies\Microsoft\Edge

Options

DefaultWebHidGuardSetting enum
  • Do not allow any site to request access to HID devices via the WebHID API -> 2
  • Allow sites to ask the user to grant access to a HID device -> 3

Description

Setting the policy to 3 lets websites ask for access to HID devices. Setting the policy to 2 denies access to HID devices. Leaving it unset lets websites ask for access, but users can change this setting. This policy can be overridden for specific url patterns using the 'WebHidAskForUrls' (Allow the WebHID API on these sites) and 'WebHidBlockedForUrls' (Block the WebHID API on these sites) policies. Policy options mapping: * BlockWebHid (2) = Do not allow any site to request access to HID devices via the WebHID API * AskWebHid (3) = Allow sites to ask the user to grant access to a HID device Use the preceding information when configuring this policy.