Making An XMLHttpRequest Through A Proxy?
Is it possible to route HTTP requests through a proxy server programmatically from the browser with JavaScript?
Solution 1:
Assuming you mean a standard HTTP proxy: No. The use of a proxy server is a browser configuration setting and cannot be changed (or even temporarily overridden) from JS.
You could make an HTTP request to a regular HTTP endpoint on a server that determines the response it should make by making an HTTP request to a different server.
Solution 2:
You can use some browser-extensions like "Bettenet VPN Proxy" or "Bear VPN" for this (Chrome).
Post a Comment for "Making An XMLHttpRequest Through A Proxy?"