http-route-proxy
http-route-proxy copied to clipboard
not working like in documentation
I created a proxy which should redirect to google according to https://www.npmjs.com/package/http-route-proxy .
proxyServer.proxy([ { from: 'localhost:9000', to: 'www.google.com', https: true, headers: { req: {origin: 'www.google.com', referer: 'www.google.com'}, res: {'access-control-allow-origin': 'https://www.google.com', 'access-control-allow-credentials': true} } } ]);
After opening localhost:9000 in the browser, there is an infinite loading and in the stdout I obtain the following:
Sorry proxy error, http-route-proxy can't match any forward rule, please check your proxy config
Same issue ...
@gbraux @piotr-s-brainhub which version of http-route-proxy, and what's yours OS ?
Fixed that in [email protected], compatible problem of node version above 0.x
Today I checked http-route-proxy in the latest version (0.6.1) works. It didn't work with latest version for time when I reported this issue (2016-08-24).
node version: 6.3.1
OS: Linux
kernel version: 3.13.0-24-generic
distribution: Linux Mint 17
Thanks, current version is 0.2.2, I had fixed that problem.