# Feature Request - headers

**URL:** <https://discourse.nodered.org/t/feature-request-headers/42118>\
**Category:** Dashboard\
**Created:** [5 March 2021 20:01 UTC](https://discourse.nodered.org/t/feature-request-headers/42118 "2021-03-05T20:01:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [5 March 2021 20:01 UTC](https://discourse.nodered.org/t/feature-request-headers/42118/1 "2021-03-05T20:01:51Z")

</div>

Back in Sep 22, 2020 I provided a pull request:

```auto
socketip of user incorrect behind a proxy

```

> <https://github.com/node-red/node-red-dashboard/pull/620/files>

For a while now I've been using:

```auto
ev.emit("newsocket", socket.client.id, socket.request.headers);

```

Instead of:

```auto
ev.emit("newsocket", socket.client.id, socket.request.headers['x-real-ip'] || socket.request.headers['x-forwarded-for'] || socket.request.connection.remoteAddress);

```

This way I can get more information from the client

 ![zexample](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6fca12dac858cfa17e1800c7b489fe5932fa503.jpeg)

I've tried to add a check box to add option for full header but I just don't understand how the dashboard code works ..... how io.on socket.on .... I get lost.

I'll keep doing it the way I do now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 April 2021 20:02 UTC](https://discourse.nodered.org/t/feature-request-headers/42118/2 "2021-04-04T20:02:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
