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
### `yarn why http-proxy-middleware` OR `npm ls http-proxy-middleware` output (mask private folder names with *****) ```shell % npm ls http-proxy-middleware ***/my-node-proxy └── [email protected] ``` ### - [X] I understand project...
… is duplicated in the URL path Resolves an issue where the path key is set to a different path if it is duplicated in the URL path ex >...
### `yarn why http-proxy-middleware` OR `npm ls http-proxy-middleware` output (mask private folder names with *****) ```shell [email protected] ***** ├─┬ @types/[email protected] │ └── [email protected] deduped └── [email protected] ``` ### - [X]...
I need to proxy a multipart upload request from a web application to an API server. The target server checks the file size and if it is bigger than expected...
It looks to me as the proxy has some issues with chunked encoding. This is my config: ``` const proxy = require('http-proxy-middleware'); module.exports = function (app) { app.use(['/ui', '/oauth2'], proxy({...
### `yarn why http-proxy-middleware` OR `npm ls http-proxy-middleware` output (mask private folder names with *****) ```shell [email protected] ``` ### - [X] I understand project setup issues should be asked on...
### Expected behavior We do a request from browser localhost:8100 to http://localhost:3000/proxy/tun0/blabla which should be redirected to https://tun0.bla.bla.com/bla The strange thing I use several routes and any other is working...
### Expected behavior Whenever I set a proxy of an URL using http proxy middleware, then if there is a CORS, it automatically redirects me to a url https://true. This...
### Expected behavior ### Actual behavior ### Setup * http-proxy-middleware: _version_0.18.0 * server: express_version_4.16.0 * other relevant modules #### proxy middleware configuration ```javascript var wsProxy = proxyMiddleware('ws://localhost:1337/socket.io', { changeOrigin:true, secure:...
changeOrigin has nothing to do with `origin` header which is confusing and harmful when working with CORS. As CORS middleware sometimes makes decisions depending on `origin` header. `changeOrigin` option handles...