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

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more

Results 138 http-proxy-middleware issues
Sort by recently updated
recently updated
newest added
trafficstars

Request terminates in middleware. There is however an option "option.onProxyRes" that allows you to further handle the request as you wish in the onProxyRes handler. However, this handler only takes...

### Expected behavior HPM should upgrade websocket requests always ### Actual behavior HPM websocket proxy cannot upgrade websocket connections sporadically ### Setup - http-proxy-middleware: 0.17.1 - server: tornado 4.4.1 -...

help wanted
need investigation

I am using the http-proxy-middleware (https://www.npmjs.com/package/http-proxy-middleware) to implement a proxy to another REST API that has client-side certificate based authentication enabled (requestCert: true, rejectUnauthorized: true). Client calls to the Proxy...

Hello, I have issue: I want to use **onProxyReqWs** for authentication. I need to take my session data and send it to websocket server as a header. But my **connect**...

### Expected behavior Redirect to $URI index.html with current url when reloaded or refreshed. ### Actual behavior 404, as express setup expects a url in the backend. ### Setup *...

Also see expressjs/express#3428. ### Expected behavior The following should listen for websocket requests only under `/__webpack_hmr`. ```javascript express.use('/__webpack_hmr', proxy({ ws: true, target: 'http://...' })); ``` Websocket requests to other paths...

### Is this a question? no ### Is this a bug report? no ### Is this a feature request? yes ### Steps to reproduce (Write your steps here:) 1. 2....

I use the proxyMiddleware to create multiple web socket proxies for user to access with different query parameter, such as http://a.com/?id=1 => map to localhost:81, http://a.com/?id=2 => map to localhost:82....

need minimal example

By default, the proxy handles all requested routes on the given context(s), even if they are 404. This makes sense for routes that are actually handled by the target but...

The example code does not work as intended. ### Steps to reproduce Use the example code: ``` var express = require('express'); var proxy = require('http-proxy-middleware'); var app = express(); app.use(...