Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
89 views

I am trying to add a header to an HTTP request as: const { createProxyMiddleware } = require('http-proxy-middleware'); const express = require('express'); const app = express(); const API_KEY = '...
Mandroid's user avatar
  • 7,778
0 votes
0 answers
144 views

I'm building an API Gateway using Node.js, Express, and http-proxy-middleware. All incoming requests are forwarded to different services based on dynamic routing logic. I'm encountering a 408 Request ...
Keyla's user avatar
  • 1
0 votes
1 answer
80 views

I have a node.js / express project and I try to implement http-proxy-middleware like this : const app = express(); ... // 1st : `/mainUrls/*` are processed by the main app app.use("/mainUrls"...
gduh's user avatar
  • 1,212
0 votes
1 answer
29 views

I am using Flask with the flask-jwt-extended library for authentication, and I have encountered an issue with the refresh cookie. My setup includes: Backend: Flask running with flask run on port 5000....
Stepan0806's user avatar
0 votes
0 answers
198 views

I've got a simple node proxy app that works exactly as I want when I proxy between to localhost ports with https. That is, https://localhost:5200/jokes to https://localhost:7172/jokes. I call it from ...
Pete's user avatar
  • 3,451
1 vote
1 answer
504 views

I am trying to modify HTML body response of proxied target url, but my res.send method is not executing because onProxyRes function is not waiting the proxyRes.on('end', () => { event. const ...
Rang's user avatar
  • 13
-1 votes
1 answer
218 views

I'm facing an issue in my react application where I have created setupProxy.js file in that I have added multiple environment url (.development, .test) . Development port is running "http://...
abhijit bakshi's user avatar
-1 votes
1 answer
233 views

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 ...
Nivedha's user avatar
0 votes
0 answers
97 views

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....
Deevanshu Kushwah's user avatar
0 votes
1 answer
394 views

I have the current code for proxying. const fastify = require('fastify')({ logger: true }) const fastifyHttpProxy = require('@fastify/http-proxy') fastify.register(fastifyHttpProxy, { upstream: ...,...
Richard's user avatar
  • 7,493
0 votes
0 answers
405 views

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 ...
optimizitor's user avatar
2 votes
3 answers
1k views

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 ...
Hei Yui Wong's user avatar
2 votes
1 answer
160 views

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 ...
Takuhii's user avatar
  • 967
0 votes
2 answers
825 views

I'm having a webpack-dev-server enabled with watcher and reload on every change. This frontend dev server is in docker container, and is proxying everything to another docker container, backend, which ...
MCFreddie777's user avatar
  • 1,213
0 votes
1 answer
83 views

The query object from the client is simply missing from the handshake object on the server. On console.log(socket) at the client, query object is shown in _opts while opts looks like - hostname: "...
Manik Sejwal's user avatar
1 vote
1 answer
1k views

We use CORS + SameSite to prevent CSRF attack on the server side & Next.js build a static site with Apache mod_proxy, the Domain component is handled by Apache's ProxyPassReverseCookieDomain ...
gavenkoa's user avatar
  • 49.7k
0 votes
0 answers
262 views

Angular app converted @angular/ssr application to dynamically render pages of type /page/:id and optimize SEO. I have an existing local API made with Go and Gin Routing, and it is running at http://...
k-lombard's user avatar
0 votes
0 answers
79 views

The Banno plugin servers are hosted on localhost on different ports (e.g. http://localhost:21770 and http://localhost:21771), however, the corresponding external App redirect URIs are not localhost-...
Ravindra's user avatar
  • 105
0 votes
0 answers
1k views

I use http-proxy-middleware in a NestJS middleware to proxy / rewrite some requests. Problem is, for every request on that route, a new Instance of the Middleware Class is created. After a couple of ...
An0ncoder's user avatar
0 votes
1 answer
117 views

I'm developing a website in React using create-react-app. I'm using an external script for some features relating to credit card payment (Clover in this case). This script adds iframes to the page ...
Cappucirno's user avatar
0 votes
1 answer
1k views

I try to proxy all interfaces of http://A.com to http://B.com. And then I want to change the result of interface '/api/v2'. But what i do is not worked for the interface '/api/v2'. My logs in proxyRes ...
dai's user avatar
  • 3
0 votes
1 answer
414 views

I've setup proxy server in express Node, which is working fine. const express = require('express'); const { createProxyMiddleware } = require('http-proxy-middleware'); const app = express(); // ...
Dhruvil21_04's user avatar
  • 2,239
1 vote
1 answer
787 views

I'm trying to adapt an older React app to work like an MS-generated client app I created. The newer one uses http-proxy-middleware in a script file named setupProxy.js so I am trying to do the same ...
Joe's user avatar
  • 7,194
0 votes
1 answer
2k views

I am basically following the code in here. I generate my Express project using npx express-generator In my routes/index.js I do this var express = require("express"); var router = express.Router()...
keylogger's user avatar
  • 882
0 votes
0 answers
150 views

I've created a very basic Node Express Proxy server using the http-proxy-middleware module. I'm able to reach the target url which is a login page. However when I try to login to the page I get a '400 ...
Alt_J's user avatar
  • 11
0 votes
1 answer
216 views

code here axios for load balancing I am trying out the concepts of load balancing and I am not sure which method is suitable and works well when I dockerize the Node application I haven't tried any ...
Bharath Subu's user avatar
0 votes
1 answer
1k views

I am trying to use http-proxy-middleware in NodeJs. It is not working. I am working on node version 18. const express = require('express'); const router = express.Router(); const { ...
user16968394's user avatar
0 votes
1 answer
1k views

I was setting up a nodejs api with 2 different react front ends and found that I kept running into CORS issues. To get around this I created 3 servers. 2 for each of the front ends and 1 for the ...
KAT's user avatar
  • 295
0 votes
2 answers
6k views

I'm attempting to proxy a remote, protected resource. The proxy doesn't work, so I'm guessing that I have not configured it correctly. server.js: const express = require('express'); const { ...
craig's user avatar
  • 26.3k
0 votes
0 answers
138 views

my third party axios requests works properly on local mode properly thanks to "http-proxy-middleware", but after i build and deploy it, axios requests gives homepage html as response. ...
Faruk's user avatar
  • 9
1 vote
0 answers
198 views

I work locally with http-proxy-middeware and there is no problem After building the project with npm run build When I transfer the project to the main server, the proxy does not work anymore and gives ...
sina mohsenian's user avatar
1 vote
1 answer
2k views

TLDR: how do I customize the "Error occurred while trying to proxy: localhost:3000/" in http-proxy-middleware? I'm using the node package http-proxy-middleware as a proxy. I have some ...
Colin FAY's user avatar
  • 5,129
0 votes
1 answer
2k views

TL;DR: How to actually change a request header in http-proxy-middleware? To get around some CORS errors I set up a local proxy using the http-proxy-middleware module. In addition to setting the mode ...
Anteino's user avatar
  • 1,156
1 vote
0 answers
586 views

I am trying to get data with ReactJS in frontend only (no access to backend). Due to Cors problems I am using manual proxy setup with http-proxy-middleware - file setupProxy.js in src folder. I do not ...
Nitka's user avatar
  • 11
1 vote
1 answer
840 views

I am using Express and HPM to proxy all requests to my website. This is all wrapped together into a little tool I call ws-proxy (ws for web server, not websocket). One of the things proxied is my PVE/...
0xLogN's user avatar
  • 3,883
0 votes
0 answers
2k views

As a part of my React (front) / Express (backend) project, I have a web crawler that crawls buffer, decodes then obtain desired data using cheerio. (Just to clarify, I am not using any data obtained ...
Pogeun's user avatar
  • 41
-1 votes
1 answer
2k views

I am running my node backend on port 8000 and my dev server front end on port 9002. Ive tried a few ways to proxy to my backend when running dev, but all seem to fail (maybe because i also have "...
frederickpenn's user avatar
-1 votes
1 answer
280 views

For the architecture that is intended to be used for the project, it is necessary to have a middleware that validates if a user has an active subscription, that is, if he has already paid for it.
EdsonMeza97's user avatar
3 votes
0 answers
931 views

I create a custom server my next js code with expressjs. everything is working find expect for hot-reload. here is the code for my custom server. app.prepare().then(() => { const server = express(...
HushAtom's user avatar
  • 520
1 vote
1 answer
1k views

I've struggled for hours now trying to get http-proxy-middleware to work but what ever I do it just won't work. This is my setUp.js file (located in src) const { createProxyMiddleware } = require('...
Rasmus Olsson's user avatar
1 vote
1 answer
8k views

I have an angular application which is throwing me this error when I try to access it. TypeError: Cannot read properties of null (reading 'split') at required (/Users/.../node_modules/requires-...
Kthree's user avatar
  • 390
1 vote
1 answer
304 views

I am in the middle of upgrading my project from react-admin v3 to v4. I am currently stuck because the proxy configuration line in my package.json file is not working. It was working fine in v3. Here ...
Joe Ernst's user avatar
  • 528
2 votes
1 answer
721 views

I’m trying to setup a React web application using an asp.net core web API in two separate projects. I followed Microsoft’s guide for setting up the templates using two separate visual studio projects -...
RamenNoodle's user avatar
2 votes
0 answers
734 views

my setupProxy.js const { createProxyMiddleware } = require("http-proxy-middleware"); module.exports = function (app) { app.use( createProxyMiddleware(`/API`, { target: "...
erurang's user avatar
  • 33
1 vote
0 answers
573 views

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 ...
Sam's user avatar
  • 13
1 vote
1 answer
2k views

I am trying so setup a npm-based HTML development environment using two servers. One hosts my HTML app of static files (standard way: http://localhost:8080) while the other exposes an application api ...
nurrrb's user avatar
  • 41
0 votes
1 answer
5k views

I'm trying to configure websockets through http-proxy-middleware. I'm using Docker with NodeJS and React with react-create-app. const { createProxyMiddleware } = require('http-proxy-middleware'); ...
Leha_Stone's user avatar
3 votes
1 answer
3k views

How to apply createProxyMiddleware in webpack? I have a webpack.config.js with default proxy: // development config require('dotenv').config() const package = require('../../package.json') const { ...
Learner's user avatar
  • 675
0 votes
1 answer
225 views

I see that the request sent from the ui created using React is forwarded to the backend, but I can't get the response from the ui. There may be details that I missed as I am very new to these issues, ...
aylin's user avatar
  • 101
0 votes
0 answers
844 views

I have a code to call proxy api from Angular using express server. While using the following code I'm getting error as can't set header after they sent. am I doing something wrong here? const {...
Vinod Kumar Marupu's user avatar

1
2 3 4 5