Reputation: 1057
I have an angular application running on Google Cloud AppEngine on nodejs12 runtime.
When I proxy an api request from express server in Google cloud environment to an ASP application running on IIS, I recieve very strange response
Requests are sent with header content-type: application/json; charset=utf-8
Test on postman and locally running nodejs12/express with the same proxy settings return valid JSON.
Expecting to receive valid JSON.
Upvotes: 0
Views: 92
Reputation: 1057
https://github.com/chimurai/http-proxy-middleware/issues/97 found fix,
apparently proxy requires 'accept-encoding': 'gzip;q=0,deflate,sdch',
it was not a GAE issue was a http-proxy-middleware issue
Upvotes: 0