Since Chrome 139 to suppress a pop-up to Chrom(ium) users:
https://chromeenterprise.google/policies/#LocalNetworkAccessAllowedForUrls
This makes most sense for localhost, since any other DNS names would imply that the browser's running elsewhere.
See also: WICG/local-network-access#16
To test:
- Visit chrome://settings/performance
- Select "Enable (Blocking)"

- Restart the browser
- Visit https://demo.qz.io
- Paste the following code into terminal:
fetch('http://localhost:8182/json')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Policy Examples
Windows Registry
Software\Policies\Google\Chrome\LocalNetworkAccessAllowedForUrls\1 = http://www.example.com:8080
Software\Policies\Google\Chrome\LocalNetworkAccessAllowedForUrls\2 = [*.]example.edu
Software\Policies\Google\Chrome\LocalNetworkAccessAllowedForUrls\3 = *
macOS Plist
<array>
<string>http://www.example.com:8080</string>
<string>[*.]example.edu</string>
<string>*</string>
</array>
Linux JSON
[
"http://www.example.com:8080",
"[*.]example.edu",
"*"
]
Since Chrome 139 to suppress a pop-up to Chrom(ium) users:
https://chromeenterprise.google/policies/#LocalNetworkAccessAllowedForUrls
This makes most sense for
localhost, since any other DNS names would imply that the browser's running elsewhere.See also: WICG/local-network-access#16
To test:
Policy Examples
Windows Registry
macOS Plist
Linux JSON