Questions tagged [private-network-access]

Use this tag when you see an error message in the DevTools console like “The request client is not a secure context and the resource is in more-private address space local” and you want to know how to deal with the error. Related to RFC 1918 and the Local Network Access specification and Fetch specification.

36 questions
70
votes
8 answers

CORS error on request to localhost dev server from remote site

On Friday I had a working dev environment. On Monday I had a broken one. I encountered this error message in the Chrome dev-tools console for all my assets: Access to CSS stylesheet at 'http://localhost:8080/build/app.css' from origin…
26
votes
0 answers

Chome 102: has been blocked by CORS policy: Request had a targe IP address space of 'unknown' yet the resource is in address space 'private'

We have a web-based system hosted in the LAN (non-SSL). From Chrome 102 (Windows/Ubuntu), we face a randomly CORS issue which describes as has been blocked by CORS policy: Request had a targe IP address space of 'unknown' yet the resource is in…
Mone Xiao
  • 261
  • 3
  • 4
14
votes
2 answers

Private Network Access problem w/ disabled web security: Request had no target IP address space, yet the resource is in address space local

We have a test environment on a public site. There we use --disable-web-security flag on chrome for the testers to bypass CORS errors for public service calls during manual test phase. And also we have localhost requests on the agent machine.…
5
votes
0 answers

Blocked by CORS policy: Request had a target IP address space of `unknown`

Happening only in chrome. Working fine with other browsers e.i Firefox, Edge, etc. Access to XMLHttpRequest at 'https://www.example.com/ajax-file.php' from origin 'https://www.example.com' has been blocked by CORS policy: Request had a target IP…
Mhandzkie
  • 209
  • 2
  • 5
2
votes
1 answer

Spring CORS Filter for Access-Control-Allow-Private-Network not working

I have a webapp hosted on a public URL, trying to call a local webservice API (running on localhost) I am using Chrome to access the public website, this creates a CORS issue as described…
1
vote
1 answer

Access-Control-Request-Private-Network header issues

Today we updated the last version of google chrome browser (Version 102.0.5005.61). We have an aplication that runs into a vpn. And since then we start getting this errors on the console: As you can see we get a timed out error on the preflight and…
1
vote
1 answer

How to allow Access-Control-Allow-Private-Network with an NodeJS / Express webserver?

I have a intranet webserver. It has no certs of any kind and is accessed via http. It is technically a public IP but has no public routing. On this webserver, I have a single page application that needs to call an https api nodejs/express endpoint…
lowcrawler
  • 6,777
  • 9
  • 37
  • 79
1
vote
1 answer

Flask, add Access-Control-Allow-Private-Network true to CORS preflight

Chrome warns: A site requested a resource from a network that it could only access because of its users' privileged network position. These requests expose devices and servers to the internet, increasing the risk of a cross-site request forgery…
run_the_race
  • 1,344
  • 2
  • 36
  • 62
1
vote
1 answer

Electron How to avoid CORS-RFC1918 (private network)?

Electron v17, which has chromium v98 My BrowserWindow uses loadURL, and the web page loaded calls api from another host. I cannot modify the web. The web works fine in normal browser like chrome(version 98), though it requires a little cross origin…
chyj4747
  • 57
  • 1
  • 8
1
vote
1 answer

Can we add Access-Control-Allow-Private-Network header to IIS CORS module responses?

Chrome 98 introduces a new CORS scenario with Private Network Access. https://developer.chrome.com/blog/private-network-access-preflight/ Our application is accessed on internal URLs, but also exposed to the internet by a cloud proxy, using the same…
John Hoven
  • 4,085
  • 2
  • 28
  • 32
1
vote
0 answers

Using runtimeArgs --disable-web-security but request still fails: Request had no target IP address space, yet the resource is in address space local

I am trying to access a B2C login page from my localhost VScode using angular 12+ I am getting this error: Request had no target IP address space, yet the resource is in address space 'local' In my launch.json file I have: "runtimeArgs": [ …
1
vote
2 answers

CefSharp CORS error on request to localhost: request client is not a secure context and the resource is in more-private address space local

I am building a web app with the following architecture: remote server CefSharp to render pages coming from the remote server local server to communicate the app with a serial port But when I make requests from the client to the local server I get…
1
vote
0 answers

Catch 22? Blocked by CORS policy: Same server, internal/external IP, no SSL

My apologies if this is a duplicate. I can find a million results about CORS policy issues, but not about this specific one: I developed a simple "speed test" site for my users (wfh employees of my company) to access. It tests speeds across the…
s.co.tt
  • 163
  • 9
0
votes
0 answers

ASP.NET Core 7 Chrome error "Ensure private network requests are only made to resources that allow them"

I have an ASP.NET Core 7 MVC application running on intranet that uses Windows authentication. Recently I made some updates and included model validation for all models as part of securing application. After the updates I am getting a warning in…
0
votes
0 answers

Calling Rest API from Fetch - not working from "public" page request

I've come across a unique issue that I was wondering if someone can point me in the right direction for some online help. I have a local IIS Server that I host websites on and this is the issue: My React HTTPS website ("Website A") make a fetch call…
1
2 3