Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working like in documentation #2

Open
piotr-s-brainhub opened this issue Aug 24, 2016 · 5 comments
Open

not working like in documentation #2

piotr-s-brainhub opened this issue Aug 24, 2016 · 5 comments

Comments

@piotr-s-brainhub
Copy link

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

@gbraux
Copy link

gbraux commented Sep 7, 2016

Same issue ...

@switer
Copy link
Owner

switer commented Sep 8, 2016

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

@switer
Copy link
Owner

switer commented Sep 8, 2016

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

@piotr-s-brainhub
Copy link
Author

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

@switer
Copy link
Owner

switer commented Sep 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants