A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
1
vote
0 answers
Websocket compressed bit must be 0
I have this setup:
User goes to my domain, behind this domain is an instance of a node-http-proxy server. The node-http-proxy server proxies the http request to one of my servers. The servers are using express and socket.io to serve as a chat…

dododedodonl
- 4,585
- 6
- 30
- 43
1
vote
0 answers
How can I test https in my dev environment?
Our production server is behind an SSL terminator, our dev environment is not. How can we replicate SSL in development?
Thanks for any leads.

fancy
- 48,619
- 62
- 153
- 231
1
vote
0 answers
Heartbeat on all the backend servers attached to node-http-proxy
Does node-http-proxy provide a way to send a hearbeat to all the backend servers attached to it.
If I use the examples/simpler-balancer.js server and specify 2 backend servers, 1 of which is essentially down and the load balancing is set to round…

varunthacker
- 2,204
- 2
- 19
- 19
1
vote
2 answers
Proxying without redirecting node-http-proxy
I am trying to use node-http-proxy to proxy my site to another site eg google.com
whenever I try some of the examples they give in the docs on github instead of my site showing the content of google.com it just redirects to google.com this is the…

powerc9000
- 2,030
- 19
- 30
1
vote
0 answers
session persistence between sub domains
I am having two subdomains, api.abc.com and beta.abc.com. Both of them are on same server (box), api.abc.com is running on port 4000 and the beta.abc.com is running on 5000. I am also using node-htty-proxy to reverse proxy the requests. beta.abc.com…

Madhusudhan
- 8,374
- 12
- 47
- 68
0
votes
0 answers
How do I make this nodeJS HTTP proxy server an HTTPS proxy server?
I managed to make a proxy server in nodeJS that works for http requests (code below), but I want it to work with HTTPS web servers. I have a self-signed certificate. Is there any way I can modify this code to work with HTTPS web server?
const http =…

vismodo
- 5
- 5
0
votes
0 answers
Requesting through custom proxy using axios
I want to create a custom proxy server with no specific target and request through that proxy using axios in a separate project. Not as url proxy(i Don't actually know what are they called) where request url needs to be like this:…

Naimul Islam
- 11
- 2
0
votes
1 answer
Adding a proxy using http-proxy in front of theia editor
I am running theia editor on port 6080 (say), when I am opening editor at -> localhost:6080 it works perfectly
I am Running a proxy server as below, which is proxying the request from 5000 port to 6080.
So when I am accessing the editor over proxy…

Pawan Singh
- 824
- 6
- 13
0
votes
1 answer
http-proxy module doesn't work with create-react-app, but works with serve -s build
http-proxy module doesn't work with create-react-app, but works with serve -s build
This is my proxy-server code.
So what it does - it joins 2 api servers on different ports and frontend to a single 80 port. When you open localhost:80/* it should…

Alexander 2049
- 1
- 1
0
votes
0 answers
Vite server proxy: I am facing issues when my VPN it's turned ON since redirects my request
I have a React application using Vite.
I've added the proxy option to test out the API but I could not make it work when my VPN it's turned ON.
This is my configuration:
export default defineConfig(({ mode }) => ({
plugins: [react()],
…

Rodrilink
- 138
- 1
- 6
0
votes
1 answer
Is there a way to get Vite.js to use axios.options?
I am in the process of moving everything from Vue CLI to Vite.
Right now, I have everything that was in vue.config.js to be in vite.config.ts of the new project. Every axios call that was proxy works except axios.options.
I've checked in my Browser…

AeNiTo
- 1
- 2
0
votes
1 answer
http-proxy-middleware adds a '/' before query parameters
I want to consume an API using a proxy written in express. I use http-proxy-middleware for this. Here is the setup I have:
app.use(
createProxyMiddleware('/api', {
target: 'http://example.com/api/v2',
changeOrigin: true,
pathRewrite:…

George D
- 41
- 1
- 2
- 9
0
votes
1 answer
fastify-formbody and fastify-http-proxy are changing application/x-www-form-urlencoded request to string
I am using fastify to proxy calls to spring boot backend. Using fastify-http-proxy as proxy and application/x-www-form-urlencoded content type. To support it I am using fastify-formbody.
If I do direct call to spring boot back end, I see request…

Samvel Siradeghyan
- 3,523
- 3
- 30
- 49
0
votes
1 answer
Node Fetch resolve host like curl request
can we replicate curl resolve host in node-fetch or any other node http library.
curl https://www.example.net --resolve www.example.net:443:127.0.0.1

Faizan Ahmed
- 184
- 3
- 12
0
votes
0 answers
node-http-proxy modifying outbound request URL
I am setting up a reverse proxy server with node-http-proxy and wanted to know how to pass in a variable to change the outbound request on a per-request basis. I want to make all my calls to the proxy server located at http://localhost:8000 and pass…

ElPsyCongoro
- 31
- 5