-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Reverse proxying Google Maps does not work with http-proxy #177
Comments
Below is my example code snippet (jQuery code) that works well with Nginx's "proxy_pass"
|
Need some more info here:
|
That was what I was asking you.. What those values of headers should be.. How nginx proxy headers are different from http-proxy headers.. and implementation..... |
I don't really know nginx ... we do set them. |
What about making exact same behavior as access from a browser? That would work since ex) http://maps.google.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true url works through browsers :) |
@indexzero |
It's because you're using a subdomain, see #217 (which doesn't have much yet, but I'm going to work on this soon). Or at least - I think it is =D |
Fixed along with #217 |
ex) http://maps.google.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
With Nginx,
Works nicely.
But somehow with node-http-proxy,
Does not work.
I guess Nginx and node-http-proxy handles header differently :( ex) X-Forwarded-For, Referer and etc.
I want to use node-http-proxy :) instead of nginx to make this work.
Would you take some time to change header values when reverse proxying?
The text was updated successfully, but these errors were encountered: