My server, server.example.com, is not accessible from the Internet. However, there is an available HTTP proxy, proxy.example.com, which can talk to the server.
If users configure their browser to access through proxy.example.com for * .example.com or use the autoconfig proxy file that I provide, they can access the server (after authentication with the proxy server). I want them not to go through this manual process.
Is it possible to do this programmatically? JavaScript will be served from www.example.com, so there seems to be no security issue that would make this impossible in principle.
My limitation is that proxy.example.com is an HTTP proxy server and I cannot touch it. I only manage server.example.com and www.example.com, and my web application can only be run on server.example.com.
source
share