http-route-proxy icon indicating copy to clipboard operation
http-route-proxy copied to clipboard

not working like in documentation

Open piotr-s-brainhub opened this issue 9 years ago • 5 comments

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

piotr-s-brainhub avatar Aug 24 '16 13:08 piotr-s-brainhub

Same issue ...

gbraux avatar Sep 07 '16 22:09 gbraux

@gbraux @piotr-s-brainhub which version of http-route-proxy, and what's yours OS ?

switer avatar Sep 08 '16 02:09 switer

Fixed that in [email protected], compatible problem of node version above 0.x

switer avatar Sep 08 '16 02:09 switer

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

piotr-s-brainhub avatar Sep 08 '16 07:09 piotr-s-brainhub

Thanks, current version is 0.2.2, I had fixed that problem.

switer avatar Sep 08 '16 08:09 switer