# Use Node-RED as reverse proxy

**URL:** <https://discourse.nodered.org/t/use-node-red-as-reverse-proxy/13017>\
**Category:** General\
**Created:** [7 July 2019 23:17 UTC](https://discourse.nodered.org/t/use-node-red-as-reverse-proxy/13017 "2019-07-07T23:17:04Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [18 July 2019 19:49 UTC](https://discourse.nodered.org/t/use-node-red-as-reverse-proxy/13017/22 "2019-07-18T19:49:26Z")

</div>

> [@kenime](#):
>
> will the response header "polluted" by the proxy's response header? One of your use case is to hide internal resource link and you will definitely not hoping for exposing proxy headers to actual response header

Hi Keni (@kenime ),  
I did some extra tests, and I have the impression that the [reverse proxy](https://www.npmjs.com/package/http-proxy) library (which I'm using behind the scenes) does something not correctly. Or I am not using it correctly somehow...

When I navigate in Chrome to my reverse-proxy node (which redirects me to [httpbin.org](http://httpbin.org)), then I see e.g. `server:nginx` in the response headers:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/443d9d57344f676a7aac14a1f433e4da6f5e09f8.png)

I did expect to see `server:Express`, since Node-RED (and also the reverse proxy node) is running ExpressJs. But now _Nginx is leaked, which is the webserver used to host [httpbin.org](http://httpbin.org)_ ;-(

Don't see what could be going wrong. Unless somebody else can give me the golden tip, I am going to rename my node to e.g. **node-red-contrib-http-redirect**. I have developed this node mainly for redirecting my mjpeg streams via Node-RED, and that seems to be working fine ...

**[EDIT]** I'm wondering now if I should have used [RedBird](https://github.com/OptimalBits/redbird), which seems to be a reverse proxy build on top of node-http-proxy. Not sure anymore ...

---

_[View the full topic](https://discourse.nodered.org/t/use-node-red-as-reverse-proxy/13017)._
