CORS: Private Network Access preflight blocked (public site calling localhost/intranet)
Chrome blocks a public website from reaching a private IP, localhost or intranet service without explicit permission.
Private Network Accesshas been blocked by CORS policy: Permission was denied for this request to access the `unknown` address spacePermission was denied for this request to access the `local` address space Meaning
Requests from a public origin to a more private address trigger a PNA preflight with Access-Control-Request-Private-Network: true. The server must answer Access-Control-Allow-Private-Network: true plus normal CORS headers, and the page must be served over HTTPS.
Common causes
- Public page calling 192.168.x.x or localhost
- Server not sending Allow-Private-Network
- Mixed content with the private target
- Chrome PNA enforcement enabled
- Device/router API called from the web
⚡ Quick fix
- Return
Access-Control-Allow-Private-Network: trueon the preflight - Serve the page over HTTPS
- Proxy through a public backend instead
Detailed fix by platform
Express
app.options("*", (req, res) => { res.set("Access-Control-Allow-Private-Network", "true"); res.sendStatus(204); });
How to diagnose
- Target — Private address?
- PNA header — Returned?
- Page — HTTPS?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in HTTP
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026