'CORS | allow private network access to my server

Recently chrome introduced the Private Network Access (formerly known as CORS-RFC1918) which restricts the ability of websites to send requests to servers on private networks.

I'm an owner of an internal server and I'd like to receive and respond to such requests anyway. My server is a private HTTPS server and I have no problem receiving requests (XHR) from external HTTPS servers, I'd like to also be able to send a request from a public HTTP website to my server, how can I achieve this?

  • The address of the public website is not constant, I'd like to allow all the HTTP websites such communication with my server.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source