Spec-Zone.ru › HTTP

Headers: Permissions-Policy.local-network-access

Permissions-Policy: local-network-access directive

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTTP Permissions-Policy header local-network-access directive controls whether the current document is allowed to make network requests to local and loopback addresses. This policy directive is an alias for the newer local-network and loopback-network directives.

  • A local address is only accessible on the local network; its target will differ on different networks. For example, 192.168.0.1.
  • A loopback address is only accessible on the local host; its target will differ on every device. For example, 127.0.0.1, which is generally known as localhost.

Specifically, where a defined policy blocks use of this feature, requests to local and loopback addresses will always fail. If you want more granular control over local and loopback addresses, you should use the newer directives linked above.

See Local Network Access > The local-network-access alias for more details.

Syntax

Permissions-Policy: local-network-access=<allowlist>;
<allowlist>

A list of origins for which permission is granted to use the feature. See Permissions-Policy > Syntax for more details.

Default policy

The default allowlist for local-network-access is self.

Specifications

Specification
Local Network Access>
# permissiondef-local-network-access>

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
local-network-access
142Superceded by the local-network and loopback-network permission policies; acts as an alias for both.
142Superceded by the local-network and loopback-network permission policies; acts as an alias for both.
No
126Superceded by the local-network and loopback-network permission policies; acts as an alias for both.
No
142Superceded by the local-network and loopback-network permission policies; acts as an alias for both.
No
93Superceded by the local-network and loopback-network permission policies; acts as an alias for both.
No No No No

See also

  • Local Network Access
  • Permissions-Policy header
  • Permissions Policy

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy/local-network-access

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API