# Not sure how to deal with httpAdminRoot

**URL:** <https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473>\
**Category:** Developing Nodes\
**Created:** [9 November 2021 20:16 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473 "2021-11-09T20:16:06Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [9 November 2021 20:16 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473/1 "2021-11-09T20:16:06Z")

</div>

Hi folks,

Got an [issue](https://github.com/bartbutenaers/node-red-contrib-tank-volume/issues/2) today on Github about one of my nodes. The user has uncommented this part of his settings.js file:

```auto
httpAdminRoot: '/admin',

```

And then the images of my node cannot be loaded anymore from his docker container...

So I wanted to reproduce this problem on my Windows 10 portable running Node-RED:

1. I uncommented that line in my settings.js file

2. Now as expected I had to add /admin in my browser's address bar to be able to connect to my flow editor.

3. But my images are still being loaded correctly (even after clearing the browser cache):

4. The Network tab indee shows that the images are loaded from the new extended url:

I had expected this to fail (similar to his Docker setup), since my [endpoint](https://github.com/bartbutenaers/node-red-contrib-tank-volume/blob/main/tank_volume.js#L717) is _ **not** _ using `RED.settings.httpAdminRoot` in any way (explicit)...

Can somebody please enlighten me about what I am doing wrong?

Thanks!!  
Bart

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 November 2021 20:29 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473/2 "2021-11-09T20:29:32Z")

</div>

Not entirely sure what's happening - can't see anything obviously wrong.

One thing you could consider is to remove the `needsPermission` middleware from that route. - Given the route just serves static images and no actual user/flow data you could legitimately do that - and it should solve the 401 error.

---

<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:** [9 November 2021 22:07 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473/3 "2021-11-09T22:07:14Z")

</div>

Thanks Nick!  
I have asked him whether that solves his problem. Fingers crossed...

---

<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:** [10 November 2021 19:20 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473/4 "2021-11-10T19:20:03Z")

</div>

It was indeed solved by removing the permission part. Thanks for the tip!!!

---

<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:** [11 November 2021 21:31 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473/5 "2021-11-11T21:31:02Z")

</div>

> [@BartButenaers](#):
>
> It was indeed solved by removing the permission part

This fix for the tank-volume node is now published in the pallette as version _ **1.0.1** _:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4ca5846469044e1f63c53bedfef6ec1ae5f36e0d.png)

---

<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:** [25 November 2021 21:31 UTC](https://discourse.nodered.org/t/not-sure-how-to-deal-with-httpadminroot/53473/6 "2021-11-25T21:31:31Z")

</div>

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