Questions tagged [node-http-proxy]

A full-featured http proxy for node.js

271 questions
1
vote
0 answers

Modify server response using node http proxy

I am a beginner to node js and this is my first post in here so apologies if this is a stupid question. The problem I need to solve is to change information in an HTTPS server response before it hits the client. The reason is that my my client (Im…
fsallstrom
  • 31
  • 1
1
vote
0 answers

PUT method not allowed with http-proxy

When calling my PUT method, I got this error: 403 Forbidden

Forbidden

You don't have permission to access…

1
vote
0 answers

Target server not recieving the request body in http-proxy?

I am trying to introduce gateway for my micro services. I got stuck in post method. Target server not receiving the request body. Not sure what i am doing wrong. Can any one help me out. Here is the code const express = require('express'); const app…
1
vote
1 answer

How to make pouchdb cloudant replication work with node.js/express proxy?

I'm unable to get PouchDB Cloudant replication to work over a proxy (express/node.js server and node-http-proxy). Would like to achieve this to add access control. Replication works without proxy: PouchDB --> Cloudant…
1
vote
1 answer

ArangoDB Web Interface Behind Node.js Reverse Proxy - Cannot Connect

I have a Node.js back end that I am using for authentication and for reverse proxy of an ArangoDB Web Interface. I cannot for the life of me figure out why I am unable to log into the Web Interface using my external URL. I have searched high and low…
Reggie C
  • 21
  • 3
1
vote
1 answer

How does node-http-proxy parse the target url?

I ran into a problem and I feel that node-http-proxy is changing my target links. I got a few examples below. I am using express as my server and using Metaweather API . The problem is that I was able to get data from the endpoints…
user8839735
1
vote
0 answers

create-react-app/react router dev server proxy config

The Back Story I am working on an app (source here) that uses flask for a backend api and react w/ react-router (using create-react-app) for the frontend. However, I haven't been able to get the devserver npm start to proxy api requests to flask.…
1
vote
1 answer

How to bypass referer checking of website with NodeJS

There is a way to bypass the referrer checking of a website? With nodeJS like a proxy or something like this? For info, I must play some media on a server but this server check the referrer for a specific value, if the value is not here, it…
Burolisan
  • 41
  • 1
  • 4
1
vote
0 answers

Express JS: Superagent does not use http-proxy-middleware

I am writing a node application using express JS. Usually in this application we consumes res apis and merge them in one object and send it to angular application. As a rest client I am using superagent. One of my colleague has written reverse proxy…
1
vote
1 answer

how to reverse-proxy a client/user from one server to another using nodejs?

i was looking a for a way to reverse-proxy my application which is running on localhost:7200 to another server running on 10.0.0.1:3000 by using a POST request apiRoutes.post('/route', function(req, res) { res.json({ message: 'Done' }); var…
1
vote
1 answer

How to add/remove response headers in ExpressJS while proxying request

I have some files stored on a CDN server which is not to be directly accessed from client. So I proxy the requests via the public accessible server running ExpressJS and use request module to fetch the data server-side and return it in response. It…
codneto
  • 2,319
  • 3
  • 24
  • 36
1
vote
2 answers

node-http-proxy how to forward cookies to the proxy target

I'm trying to proxy an PHP api service, but I need to authenticated based on a session token. Does node-http-proxy has options to forward the cookies to the target ?
R.R
  • 847
  • 1
  • 9
  • 20
1
vote
1 answer

Change response cookies with node-http-proxy?

So, I am proxying my API requests through a node-http-proxy for several reasons. The external API has a different origin than the actual client, so cookies are not being set correctly. The proxy obviously runs at the same origin, so I want to…
j_d
  • 2,818
  • 9
  • 50
  • 91
1
vote
2 answers

Node.js http-proxy inside cluster worker

I build a sample code in node js var cluster = require("cluster"), http = require("http"), express = require('express'), port = parseInt(process.argv[2]||8001), servers = ['http://127.0.0.1:800821', 'http://127.0.0.1:800831'];; if…
user1392853
  • 269
  • 1
  • 6
  • 19
1
vote
1 answer

Setting the Date in a node-http-proxy request

I am trying to create a node-http-proxy server that explicitly sets the Date passed in all requests. Can anyone please advise me how to do this. i.e. I want to force the date passed in all HTTP request(s) to be a date in the past Setting the Date in…
Mark J
  • 11
  • 2