# How to add Icon with no re-authorization

**URL:** <https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848>\
**Category:** Dashboard\
**Created:** [1 May 2020 06:31 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848 "2020-05-01T06:31:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarahi](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tarahi](https://discourse.nodered.org/u/tarahi)\
**Post date:** [1 May 2020 06:31 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/1 "2020-05-01T06:31:38Z")

</div>

Dear friends  
I have a logo picture (logo.png) in node red main folder :

```auto
~/.node-red/Public

```

I used a ui\_template to show it.  
Every thing is OK and it shows in dashboard.  
Now the problem is, every timeI reboot, I need to re-authorize to see the picture.  
I edit httpStatic from :

```auto
/home/pi/.node-red/settings.js

```

to :

```auto
httpStatic: '/home/pi/.node-red/public'

```

Also add :

```auto
public/logo.png

```

The next time :

```auto
/logo.png

```

And at last :

```auto
logo.png

```

to :

```auto
/home/pi/.node-red/node_modules/node-red-dashboard/dist/dashboard.appcache

```

But none works !  
How can I show my picture (logo.png) in my password protected dashboard that don't need re-authorization every time?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 May 2020 06:47 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/2 "2020-05-01T06:47:25Z")

</div>

You could create an endpoint and serve it (or any file) thru a different URL.

See [Here](https://flows.nodered.org/flow/db68bd4934cf46f39e6e453a348bc419)

---

<div class="post-metadata">

**Author:** ![tarahi](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tarahi](https://discourse.nodered.org/u/tarahi)\
**Post date:** [1 May 2020 13:04 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/3 "2020-05-01T13:04:32Z")

</div>

The logo.png is in my local storage!  
Isn't it possible to show it like node-red logo at the left corner with no extra node ?

```auto
http://127.0.0.1:1880/red/images/node-red.svg

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 May 2020 13:08 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/4 "2020-05-01T13:08:03Z")

</div>

Yes, but as you have it (node-red / dashboard) secured, its, erm, secured & thus needs security credentials to be accessed! 😉

Thats why i suggested a workaround - setting up another (unsecured) end point.

You can server the single file if you want (i.e. use a fixed endpoint that only returns the one file)

There may be other solutions but I see no reason for resisting this as a solution?

If you want greater control over things, then perhaps consider ui-builder. you dont get anywhere near the amount of hand holding dashboard gives you - but you can do pretty much anything you want.

---

<div class="post-metadata">

**Author:** ![tarahi](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tarahi](https://discourse.nodered.org/u/tarahi)\
**Post date:** [1 May 2020 13:21 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/5 "2020-05-01T13:21:45Z")

</div>

How about [this](https://github.com/Paul-Reed/weather-icons) way ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 May 2020 13:23 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/6 "2020-05-01T13:23:49Z")

</div>

?

What does that have to do with accessing an image on your server on a dashboard?

The weather icons are shown IN the dashboard & thus you would need to log in to see them.

---

<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:** [31 May 2020 13:23 UTC](https://discourse.nodered.org/t/how-to-add-icon-with-no-re-authorization/25848/7 "2020-05-31T13:23:49Z")

</div>

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