express-http-proxy
express-http-proxy copied to clipboard
Proxy middleware for express/connect
My code ``` var proxy = require("express-http-proxy"); var app = require("express")(); const port = 3000; app.use("/", proxy("www.google.com")); app.listen(port, () => { console.log(`Example app listening at http://localhost:${port}`); }); ``` # Error...
The content length is set to `2`, even though there is no body. I've tracked this down to the `proxy.bodyContent` being set to an empty object, which is then translated...
Inspired by https://github.com/villadora/express-http-proxy/pull/430/files
We use express-http-proxy in an API gateway that proxies requests to microservices behind the firewall. We've been having an issue where rare random requests are failing due to a DNS...
Hello guys, i want use socks5 proxy. How can I use it? can you help me? `app.use('/',proxy('socks5://ip:port'), homeRouter);`
Currently, streaming mode is disabled if the `userResHeaderDecorator` response modifier is defined. However, this is overly strict and doesn't allow streaming when we only require access to the response headers,...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
I am trying to do some app auth logic based on a condition and then replace the path and query if it succeeds. This seems to have no effect Here...
### Steps to reproduce: 1. Clone [chriscalo/express-http-proxy-bug](https://github.com/chriscalo/express-http-proxy-bug) and peek at [`start.js`](https://github.com/chriscalo/express-http-proxy-bug/blob/main/start.js) to see that it's proxying to two APIs running in separate processes. 2. Install and run with `npm i...
Sometimes, for a certan combination of method, path, header, I would like to bounce back the request BEFORE it's forwarded to the server. I'm no sure where to create this...