node-proxy-middleware icon indicating copy to clipboard operation
node-proxy-middleware copied to clipboard

Query parameters are not being proxies

Open eranimo opened this issue 10 years ago • 6 comments

It looks like they're being stripped out. I'm using this through gulp-webserver.

eranimo avatar Feb 23 '15 17:02 eranimo

I believe this might have something to do with it: https://github.com/andrewrk/connect-proxy/blob/master/index.js#L29

Can you debug and add a PR?

drawveloper avatar Mar 16 '15 21:03 drawveloper

+1

nmehta6 avatar Apr 07 '15 21:04 nmehta6

hey guys, any possibility to fix this ? need to proxy sensitive data which are part of the query and is killing me. any other alternatives also welcome. thanks :-).

hkailantzis avatar Jul 11 '16 19:07 hkailantzis

@hkailantzis I ended up using this package instead: https://www.npmjs.com/package/connect-modrewrite. Hope this helps.

nmehta6 avatar Jul 11 '16 19:07 nmehta6

Thanks for the quick response @nmehta6. will give it a shot.

hkailantzis avatar Jul 11 '16 19:07 hkailantzis

@nmehta6 , ended up using this instead: https://www.npmjs.com/package/express-request-proxy, as I need also to proxy sensitive authorization headers :/. Hope it helps anyone who has to meet these kind of requirements.

hkailantzis avatar Jul 11 '16 21:07 hkailantzis