Edit

Share via


WebHidAskForUrls

Allow the WebHID API on these sites

Supported versions

  • On Windows and macOS since 100 or later

Description

Setting the policy lets you list the URL patterns that specify which sites can ask users to grant them access to a HID device.

Leaving the policy unset means DefaultWebHidGuardSetting applies for all sites, if it's set. If not, users' personal settings apply.

For URL patterns that don't match the policy, the following values are applied in order of precedence:

URL patterns must not conflict with WebHidBlockedForUrls. Neither policy takes precedence if a URL matches both patterns.

For detailed information about valid url patterns, see https://go.microsoft.com/fwlink/?linkid=2095322. * is not an accepted value for this policy.

Supported features

  • Can be mandatory: Yes
  • Can be recommended: No
  • Dynamic Policy Refresh: Yes
  • Per Profile: Yes
  • Applies to a profile that is signed in with a Microsoft account: No

Data type

  • List of strings

Windows information and settings

Group Policy (ADMX) info

  • GP unique name: WebHidAskForUrls
  • GP name: Allow the WebHID API on these sites
  • GP path (Mandatory): Administrative Templates/Microsoft Edge/Content settings
  • GP path (Recommended): N/A
  • GP ADMX file name: MSEdge.admx

Example value

https://microsoft.com
https://chromium.org

Registry settings

  • Path (Mandatory): SOFTWARE\Policies\Microsoft\Edge\WebHidAskForUrls
  • Path (Recommended): N/A
  • Value name: 1, 2, 3, ...
  • Value type: List of REG_SZ

Example registry value

SOFTWARE\Policies\Microsoft\Edge\WebHidAskForUrls\1 =

https://microsoft.com

SOFTWARE\Policies\Microsoft\Edge\WebHidAskForUrls\2 =

https://chromium.org

Mac information and settings

  • Preference Key name: WebHidAskForUrls
  • Example value:
<array>
  <string>https://microsoft.com</string>
  <string>https://chromium.org</string>
</array>

See also