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.

241 questions
0
votes
0 answers

Spartacus Storefront - Sitemap.xml not working

Please guide us for the below requirement to setup dynamic sitemap.xml in multi site app. Below is the requirement, When user accessing STOREFRONT_HOST/sitemap.xml then it should show the contents from API_HOST/rest/v2/localeUs/sitemap without…
0
votes
0 answers

Is it possible to change request parameter with nuxt.js proxy

Here is my story I have webapp which is using Nuxt.js, and use Elastic-search as database. So the request part will be: post https://www.webapp.com/api/article/search with raw ES query parameters json, then I use poxy module to forward…
Boosen
  • 1
  • 1
0
votes
1 answer

Express & HPM - 404 Not Found & Client Disconnected w/ PVE xterm websocket

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/Proxmox Virtual Environment node, which uses…
0
votes
0 answers

proxy setup with http-proxy-middleware, unexpected error occurs periodically

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 for commercial use, but only for a personal…
0
votes
0 answers

Reverse proxy : http-proxy-middleware

I am creating a reverse proxy server in NestJs and I encountered an error while proxying a request. 'Error: write EPROTO 8005BB0501000000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation…
0
votes
1 answer

Can't get React http-proxy-middleware to work

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('http-proxy-middleware'); module.exports = function…
0
votes
1 answer

TypeError: Cannot read properties of null (reading 'split')

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-port/index.js:13:23) at…
Kthree
  • 156
  • 1
  • 12
0
votes
1 answer

Why is react-admin ignoring my proxy configuration?

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 is my package.json file: { "name":…
0
votes
0 answers

http-proxy-middleware not working from IOS emulator

I'm running nestJS server (gateway server) and configured http-proxy-middleware The http-proxy-middleware handle all request to external server (mock server). If I call from postman to gateway server, the call is proxied to mock server and return…
Israel
  • 445
  • 2
  • 5
  • 15
0
votes
1 answer

Websockets not working with http-proxy-middleware

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'); module.exports = function(app) { …
0
votes
1 answer

Can't receive a response message when using proxy-middleware between react ui and express backend

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, thanks in advance :) //react Login.js function…
aylin
  • 101
  • 10
0
votes
0 answers

How to pass Corporate proxy headers to http-proxy-middleware npm

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 {createProxyMiddleware} =…
0
votes
1 answer

http-proxy-middleware adding custom header

I'm using http-proxy-middleware to setup request proxy from auth service to secured API. Here I need to add custom header with authenticated user auth ID for every incoming request to the authentication layer. But with following implementation…
0
votes
0 answers

onProxyRes of http-proxy-middleware doesn't work for same cases

I'm trying to write a proxy using http-proxy-middleware that modifies the content of the response, and set some headers. I'm intercepting the reponse using responseInterceptor as the documentation says. Here is the proxy implementation const proxy…
Matías González
  • 1,366
  • 3
  • 15
  • 30
0
votes
1 answer

How to get Http-proxy-middleware to work with firebase cloud functions?

currently I am creating an API Gateway and for that I started working with the http-proxy-middleware library. However I have read from the docs that libraries which modify the request usually cause problems with http-proxy-middleware (e.g body…
DavidGetter
  • 349
  • 3
  • 12