node-http-proxy
node-http-proxy copied to clipboard
A full-featured http proxy for node.js
It works for a period of time and then I get an error in the browser console: "net::ERR_INCOMPLETE_CHUNKED_ENCODING"… after this it stops working. Works perfectly if I load the site...
My script looks like this: ``` var http = require('http'), httpProxy = require('http-proxy'); var addresses = [ { host: 'localhost', port: 8888 }, ]; var proxy = httpProxy.createServer(); http.createServer(function (req,...
Cannot forward Post and PUT request using proxy.web method. can you help me how to fix this issue
props to @Tokscull
I want to automatically bring the token when the statusCode is 401 and re-request。 for example: ```ts onResponseInterceptor: (proxyRes, req, res, retry) => { if (proxyRes.statusCode == 401) { retry()...
The example ``` js proxy.on('proxyReq', function(proxyReq, req, res, options) { proxyReq.setHeader('X-Special-Proxy-Header', 'foobar'); }); ``` from the readme doesn't seem to work. It just uses the header from the req (or...
In vite, I was trying to start a http server with following code ```javascript server: { open: true, proxy: setupProxy() } const setupProxy = () => { const backendAddr =...
how to change the contents of html,when the page is received from proxy? my aim is to add some html code to the page,when the page returns to client the...
Its very simple, i needed to attach/modify Referer header on a website that has redirects. Basically when followRedirects is off it sends requests to real host, but when i enable...
Hi, Can we get the data sent along handshake as well before proxying websocket request? like on `proxyreqws` event ``` proxy.on('proxyReqWs', (proxyReq, req, socket, options, head) => { //before the...