A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
2
votes
1 answer
proxy http request with node
I have a nodeJs front end on one domain and a rest back end server on another domain.
I would like to be able to perform ajax requests from the front to the back. So, i intend to use a reverse proxy for that, in order to bypass the same origin…

rico
- 1,843
- 2
- 24
- 41
1
vote
2 answers
Error when using node-http-proxy with expressjs
I do not get the last version of node-http-proxy working (this used to work in a previous version though). Node.js version is 0.6.12, node-http-proxy version is 0.8.0.
Basically, I have a server listening on port 10000 and another one listening on…

Luc
- 16,604
- 34
- 121
- 183
1
vote
1 answer
Proxy EventSource (SSE) connections through NodeJS to a localhost backend
I have an issue with EventSource connections through node-http-proxy v1.18.1. The connections work in development, from create-react-app, proxy: , but when deploying to production, the connection fails with the following browser (chromium)…

jn4
- 25
- 6
1
vote
0 answers
Can't upgrade to websockets using https via http-proxy in Nodejs
I am using http-proxy to proxy my requests. I am using https not http. The first request is a login request and works fine. The second request is to connect to socket.io which doesn't works even doesn't show any error. I have backend server which…

Areej Fatimah
- 251
- 2
- 11
1
vote
0 answers
Parse request body and determine proxy target NodeJS http-proxy
Due to a use case, I am trying to first parse request body and then decide the proxy target. But whenever I am parsing req body, proxy does not work. it just becomes unresponsive. I tried bodyparser and reading from buffer as well, but any try to do…

Sam
- 13
- 4
1
vote
2 answers
How to use http-proxy-middleware / node-http-proxy as a reverse proxy?
I'm investigating the use of http-proxy-middleware / node-http-proxy as a reverse proxy. Does anyone know if this is really possible?
I've already setup http-proxy-middleware so that I can proxy a request through it (the results are displayed in an…

user2943799
- 947
- 2
- 13
- 23
1
vote
0 answers
How to use two chained socks proxies for a request in nodejs
I am trying to achieve an experimental setup in nodejs as illustrated below:
https-server --> local socks5 proxy (Tor) --> my external socks5 proxy --> webserver.
The existing https-server was written in nodejs and it intercepts requests from the…

Novice
- 11
- 3
1
vote
0 answers
URL as query param in proxy, how to navigate?
I'm using http-proxy to create a simple proxy: localhost:3000?q=${encodeURIComponent(targetURL)} will access targetURL using the proxy.
Here's my working code:
var http = require("http");
var httpProxy = require("http-proxy");
//create a server…

jeanpaul62
- 9,451
- 13
- 54
- 94
1
vote
0 answers
Response from http-proxy-middleware is not showing up properly [MIME-type] error
I am working to host multiple (nodejs + react) applications at different ports. As proof of concept I want http://localhost:3000/project1 to load an application running on http://localhost:4000. I created a http-proxy-middleware that runs at…

Eama
- 11
- 1
1
vote
0 answers
My Node.js HTTP proxy server crash on connResetException
I have implemented a HTTP-proxy server app in Node.js, using the http-proxy module.
Occasionally the App crashes and according to the logfile it seems like it is caused by a connection reset exception, thrown by the http-proxy…

fsallstrom
- 31
- 1
1
vote
0 answers
http-proxy-middleware change headers asynchronously
I'm using http-proxy-middleware in NodeJS to proxy a PHP site that does authentication.
The PHP site returns a header "saml-user-id".
I use this saml-user-id to generate a token which I want to add as cookie. I need to lookup the user in the…

Hendrik Jan
- 4,396
- 8
- 39
- 75
1
vote
0 answers
Nodejs HTTPS->HTTPS proxy
I'm trying to setup an HTTPS server that proxies requests to changing targets that also enforce HTTPS. this is because I want to setup an intercepting https proxy, terminate ssl, modify data and send encrypted modifications to target server (or…

toti
- 43
- 1
- 6
1
vote
1 answer
How to set Access-Control-Allow-Headers header in node-http-proxy
I am using the coinbase-pro library to make post request to the coinbase sandbox api through a form on localhost. I am trying to use node-http-proxy to get around a CORS error with no success. Ive been banging my head against the wall for a while on…

user4584963
- 2,403
- 7
- 30
- 62
1
vote
1 answer
Single port route to different services
My question is: is http-proxy, reverse-proxy.js, or any other library(with exception of a web-server like nginx) capable of routing all requests that comes to the port 80 to another services based on the url?
If a request comes at the port 80 with…

lat94
- 511
- 1
- 5
- 18
1
vote
1 answer
How to make a bocking Request in NodeJS inside a http-proxy-middleware function?
I have a proxy server which modifies a specific type of POST Request before forwarding it to the Server.
The Modification requires me to make a request to another server in order to get the new value that will be put in place of the old one in the…

asds_asds
- 990
- 1
- 10
- 19