Questions tagged [http-proxy-middleware]
Node.js proxying made simple. Configure proxy middleware with ease for connect, express, browser-sync and many more. Powered by the popular Nodejitsu http-proxy.
http-proxy-middleware
261
questions
0
votes
0
answers
6
views
Proxy socket.io with from react to nestjs
I am currently working with :
React JS with http-proxy-middleware
NestJS exposing websocket via gateways
I am trying to access my gateways at the same url using proxy but it does not work.
Here is ...
0
votes
1
answer
37
views
changes made to my JavaScript files in a React project are not reflected in the UI when compiling using 'npm start'. Reflecting only when rebuilt
Initial issue faced:
"Invalid options object. Dev Server has been initialized using an options object that does not match the API schema"
TO resolve this issue added setupProxy.js inside src ...
0
votes
0
answers
23
views
Package http-proxy-middleware with create-react-app not working
So I'm creating an app with create-react-app and I'm trying to use a proxy to solve all the CORS stuff.
I've tried everything but there's no way to make it work but I'm 100% sure that I'm missing ...
0
votes
0
answers
32
views
React + Docker + Nginx domain and http-proxy-middleware not work
Hello I newbies deploy app use docker and buy a domain, host. I have some issue when deploy my web app.
I using ngrok to test my API on local computer and React fronted in docker.
The problem:
In ...
0
votes
0
answers
28
views
express http-proxy-middleware upload not working
When i am uploading file from frontend with formdata as body of post request, Backend is returning 400 bad request.
const formData = new FormData();
formData.append("file", this....
0
votes
0
answers
22
views
Angular front end not rerouting to NestJS middleware
Module file:
import { CacheModule, Module, NestModule, RequestMethod } from '@nestjs/common';
import { ServerController } from './server.controller';
import { ReverseProxyMiddleware } from './server....
0
votes
1
answer
56
views
Using an async preHandler function on @fastify/http-proxy creates a FastifyError: Reply was already sent
I have the current code for proxying.
const fastify = require('fastify')({ logger: true })
const fastifyHttpProxy = require('@fastify/http-proxy')
fastify.register(fastifyHttpProxy, {
upstream: ...,...
0
votes
0
answers
62
views
How to modify http-proxy-middleware TLS fingerprint?
I use http-proxy-middleware to access various web-sites, including those having TLS fingerprint checks. My problem is that the proxy's TLS fingerprint is not corresponding to the User-Agent header I'm ...
0
votes
0
answers
55
views
Error Occurred While Trying to Proxy: localhost:XXXXapi with Nodejs, Express and Http-proxy-middleware
I'm starting to use http-proxy-middleware and other tools, like Express, NodeJS, etc. to make a Gateway API for a microservice I'm working on. Specifically, I'm using this guide here. I think I ...
0
votes
0
answers
32
views
http-proxy-middleware ( fastify) dynamic targets with redis
I want to use http-proxy-middleware to route traffic of different applications to different cdn paths as below:
{
"app1.example.com": {
"target": "https://cdn....
0
votes
0
answers
38
views
HttpProxyMiddleware [ERR_STREAM_WRITE_AFTER_END] when using agent
I'm using HttpProxyMiddleware, with those options:
const options = {
changeOrigin: true,
secure: false,
onProxyReq,
onProxyRes,
agent: new HttpsProxyAgent(...),
.....
...
0
votes
0
answers
94
views
Proxy configuration to websockets server using express and http-proxy-middleware
Thanks in advance for the help :)
I am trying to setup a proxy to my websocket server using express and http-proxy-middleware, a short version of my server code looks like:
const proxy = require('http-...
0
votes
0
answers
51
views
Error occurred while proxying request localhost:8080/create to http://localhost:8081/
I have a microservices project running on Docker. It works locally without any problems. However, when it runs on Docker, I cannot access other services via api-gateway.
I have no problems connecting ...
2
votes
2
answers
180
views
Invalid frame header error in websocket using by Webpack Hot Update after I use setupProxy for websocket
Below error message is shown on my console.
After researching, I found that this error message is thrown from the initSocket function, which should be used by webpack hot update.
Below is my ...
2
votes
1
answer
79
views
ExpressJS not redirecting configured PATH
I am setting up a local proxy to redirect specific URLs to another server, I am running my expressJS server as my main server, I have another server running on a different port... My express JS config ...