Well, I'm happy to contribute to the problem I had. (even if you will eventually realize that it is a dirty solution)
I try to be as clear as possible.
1) The mission was from an online web app located in any public domain (no ssl), to be able to make requests to your local private web server (no ssl).
(clearly to work the client browsing the public domain had to be connected to the same wifi or lan network as the webserver).
So the ip of the connected machine (client) xxx.xxx.1.x and web server in the same family of xxx.xxx.1.x).
The problem that I had never encountered before is that requests from the web app present in a xxx.domain.xxx domain to the local web (xxx.xxx.1.xxx) server gave CORS security errors.
The reason is now clear, explained on this page (there are others similar)
https://developer.chrome.com/blog/private-network-access-preflight/
In practice, now for security reasons to do what has been said we must apparently start from the assumption that the web domain and web server must be in SSL.
And also new automatic headers are introduced before the classic browser requests (Chrome and Edge),
while on Firefox (still briefly it will work without any changes)
Access-Control-Allow-Private-Network, InsecurePrivateNetworkRequestsAllowed.
In practice, if the http request is made from an online webapp to a local webserver (connected in the same network as the client), the request is passed with a PRIVATE status, which at that point requires additional checks, such as those above.
All this I understand from the requests that are displayed in the header and from this clear message from chrome.
Having said that I have not solved it cleanly, because in my opinion I should have ssl both online and local and my webserver does not have it, and among other things I could not point to a localhost but to a specific ip.
The dirtiest but effective solution I have found is to overcome the security problems of the online domain in question by creating some keys in the windows registry:
This way I solved the problem.
I know it's not programming, but it's still been a solution for me. (solve a problem on a specific pc)