http-proxy-middleware
http-proxy-middleware copied to clipboard
:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
### Is this a bug report? If the client disconnects before the remote server, the entire server process can be killed by an unhandled I/O error. The code in https://github.com/chimurai/http-proxy-middleware/blob/master/src/handlers.ts#L52...
I searched the docs but I couldnt find anything close to that. How can I add custom query param to the request ? I tried by setting up different middleware...
### Is this a bug report? Yes ### Steps to reproduce Hello, I have successfully setup a proxy by following/simplifying the post at [This blog](https://itnext.io/hosting-multiple-apps-on-the-same-server-implement-a-reverse-proxy-with-node-a4e213497345) I am now trying to...
I am using http-proxy-middleware this way: ```js let addons = { myaddon1: { proxy: proxy({ target: `http://localhost:${addonPort}`, changeOrigin: true, ws: true, logLevel: "debug" }) } } app.use('/:name/:type', function (req, res)...
I have a setup such as: ```js app.use('/', proxy({ changeOrigin: true, target: PRERENDERED_APP_URL })); app.use('/', proxy({ changeOrigin: true, target: APP_URL })); ``` If `PRERENDERED_APP_URL` responds with an error (e.g. status...
I want to rewrite request cookie using following code, but didn't work. ```javascript proxy.on('proxyReq', function (proxyReq, req, res) { proxyReq.setHeader('cookie', 'SESSION=123'); }); ``` And is there a way to find...
### Expected behavior Correctly forward server response, when server responds with 302 Moved Temporarily ### Actual behavior Finalhandler created error response 404 Not Found "Cannot PATCH /externaj/path/to/api/other/resource". The original response...
### Actual behavior With `router` and `pathRewrite` paramter we can change target and path for different request we proxy with this proxy. But there is one thing missing on this...
### Expected behavior pathRewrite success ### Actual behavior pathRewrite failed ### Setup * http-proxy-middleware: 0.18.0 * server: express 4.15.4 #### proxy middleware configuration ```javascript var apiProxy = proxy({ target: 'http://example.com/',...
so, I'm trying to proxy a websocket within gulp, using http-proxy-middleware. my backend server code is this ``` javascript var app = require('express')(); var server = require('http').createServer(app); var io =...