Share via


LocalNetworkAccessAllowedForUrls

Allow sites to make requests to local network endpoints.

Supported versions

  • On Windows and macOS since 140 or later

Description

Specifies a list of URL patterns for which requests initiated from matching origins are exempt from Local Network Access restrictions.

If an origin is specified by both this policy and the LocalNetworkAccessBlockedForUrls policy, the blocked list takes precedence.

For origins not covered by this policy, the user's personal settings and local network access restrictions will apply.

For guidance on valid URL pattern syntax, see: Enterprise policy URL pattern format

Note: This policy enables controlled exceptions to local network access restrictions. It allows specific public websites to access private IP addresses when necessary for trusted local communication scenarios. For more information about Local Network Access, see https://wicg.github.io/local-network-access/.

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: Yes

Data type

  • List of strings

Windows information and settings

Group Policy (ADMX) info

  • GP unique name: LocalNetworkAccessAllowedForUrls
  • GP name: Allow sites to make requests to local network endpoints.
  • GP path (Mandatory): Administrative Templates/Microsoft Edge/Network settings
  • GP path (Recommended): N/A
  • GP ADMX file name: MSEdge.admx

Example value

http://www.example.com:8080
[*.]example.edu
*

Registry settings

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

Example registry value

SOFTWARE\Policies\Microsoft\Edge\LocalNetworkAccessAllowedForUrls\1 =

http://www.example.com:8080

SOFTWARE\Policies\Microsoft\Edge\LocalNetworkAccessAllowedForUrls\2 =

[*.]example.edu

SOFTWARE\Policies\Microsoft\Edge\LocalNetworkAccessAllowedForUrls\3 =

*

Mac information and settings

  • Preference Key name: LocalNetworkAccessAllowedForUrls
  • Example value:
<array>
  <string>http://www.example.com:8080</string>
  <string>[*.]example.edu</string>
  <string>*</string>
</array>

See also