← Chrome 147 reference

v147 · shipped · security · websocket

Local network access restrictions for WebSockets

Limited availability

  • Chrome · 147 (desktop, Android)
  • Edge · mirrors Chrome (147)
  • Firefox · no restriction, no signal
  • Safari · no restriction, no signal

Chromium-only behavior: BCD api/WebSocket.json now carries a local_network_access subfeature — “Subject to Local Network Access restrictions” — recording Chrome 147 (Android and Edge mirror), Firefox and Safari false, marked experimental (fetched 2026-11-01). The umbrella Local Network Access feature is Baseline limited on webstatus.dev (Chrome/Edge 145 for fetch-level checks; this record extends them to WebSockets in 147). MDN’s security reference: Local network access.

Chrome 147 extends Local Network Access (LNA) protections to WebSocket connections. Public websites now need explicit user permission before connecting via WebSocket to local or private IP addresses (loopback, LAN). This prevents silent cross-origin requests to devices on the user's private network.

Breaking change WebSocket connections from public websites to local addresses (localhost, 192.168.x.x, 10.x.x.x, etc.) now trigger a permission prompt in Chrome 147 and Edge 147. Existing apps that relied on silent WebSocket connections to local services will stop working until users grant permission — or until the site obtains a per-origin policy exemption.

at a glance

Shipped inChrome 147, Edge 147 (desktop, Android)
StatusEnabled by default
Flagchrome://flags/#local-network-access-check-websockets
SpecWICG Local Network Access spec
ChromeStatus5197681148428288 — Local network access restrictions for WebSockets

Shipped-versus-recorded-status disagreement, both sides reported rather than resolved: this page records the feature as shipped in Chrome 147 (desktop and Android), while the ChromeStatus record for feature 5197681148428288 still reads status “Proposed” with is_released false and accurate_as_of 2026-03-24 (fetched 2026-10-06). That record's own rollout plan says “Will ship enabled for all users”, which is consistent with the page's enabled-by-default ship if the milestone lands as recorded — so the two are reported together rather than one being chosen.

why it exists

Private network devices (printers, routers, smart home hubs, development servers) often lack authentication and CORS headers, making them easy targets. A malicious public website could silently open a WebSocket to ws://192.168.1.1 and interact with a home router's local admin interface without the user's knowledge. Chrome already gated subresource fetches (HTTP/HTTPS) to local addresses behind LNA checks; Chrome 147 closes the same gap for WebSocket connections.

Source: blink-dev Intent to Ship — Local network access restrictions for WebSockets, April 2026.

what changes

WebSocket connection attempts from secure public pages to local/private addresses now require a user permission grant. The browser shows a permission prompt; if the user denies (or no prompt is shown because the site is not secure), the WebSocket connection is blocked.

Affected address ranges

Address rangeExamples
Loopback127.0.0.1, localhost, ::1
Private (RFC 1918)10.x.x.x, 172.16–31.x.x, 192.168.x.x
Link-local169.254.x.x, fe80::/10

Requirements for the connection to proceed

Source: Chrome for Developers blog — Local Network Access permission prompt, April 2026.

enterprise policy

Enterprise deployments can bypass the restriction via Chrome policies:

PolicyEffect
LocalNetworkAccessAllowedForUrlsOrigins allowed to connect to local network without a prompt.
LocalNetworkAccessBlockedForUrlsOrigins blocked from connecting to local network.
LocalNetworkAccessRestrictionsTemporaryOptOutTemporarily disables the restriction enterprise-wide during rollout.
Source: Chrome Enterprise and Education release notes; policy names as published in the Chrome Enterprise policy list, April 2026.

mitigation for developers

If your web application connects via WebSocket to a local server (e.g. a companion native app or dev-mode tool), you have several options:

// A public HTTPS page connecting to a companion app on the user's own
// machine. Chrome 147 shows the Local Network Access permission prompt
// before the connection is established; a denied prompt blocks it.
const socket = new WebSocket("ws://127.0.0.1:8787/bridge");

socket.addEventListener("open", () => socket.send("ping"));
socket.addEventListener("error", () => console.warn("Local WebSocket blocked."));
Source: blink-dev Intent to Ship — Local network access restrictions for WebSockets, April 2026.
Live examples from the Chrome Platform Showcase (route HEAD-checked 200, 2026-11-01). Concept demos: websockets demo, preflight flow, upgrade flow, ws security audit, and compatibility lab. Exercising the prompt needs a local WebSocket endpoint on your machine.Source: chrome-platform-showcase

browser support

Per-version data from BCD api/WebSocket.json, subfeature local_network_access (fetched 2026-11-01; marked experimental, standard-track).

BrowserLNA restriction on WebSockets
Chrome (desktop)147 (BCD) — enabled by default
Chrome Android147 (BCD mirror; the ChromeStatus record lists Android 147 explicitly)
Edge147 (BCD mirror)
FirefoxNo restriction (version_added: false); no signal on the record
SafariNo restriction (version_added: false); no signal on the record
Source: BCD api/WebSocket.json — local_network_access; chromestatus.com feature page (re-fetched 2026-11-01)

see also