en-US

Allow listed sites connect to specific HID devices

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

Registry

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

Options

WebHidAllowDevicesForUrls text

Description

This setting lets you list the URLs that specify which sites are automatically granted permission to access a HID device with the given vendor and product IDs. If you set this policy, each item in the list requires both devices and urls fields for the item to be valid; otherwise, the item is ignored. * Each item in the devices field must have a vendor_id and may have a product_id field. * Omitting the product_id field will create a policy matching any device with the specified vendor ID. * An item which has a product_id field without a vendor_id field is invalid and is ignored. If you don't set this policy, then 'DefaultWebHidGuardSetting' (Control use of the WebHID API) applies, if it's set. If not, the user's personal setting applies. For detailed information about valid URL patterns, see https://go.microsoft.com/fwlink/?linkid=2095322. * isn't an accepted value for this policy. URLs in this policy shouldn't conflict with those configured through 'WebHidBlockedForUrls' (Block the WebHID API on these sites). If they do, this policy takes precedence over 'WebHidBlockedForUrls'. Example value: [ { "devices": [ { "product_id": 5678, "vendor_id": 1234 } ], "urls": [ "https://microsoft.com", "https://chromium.org" ] } ]