# How to add external URL in settings.js file

**URL:** https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285
**Category:** General
**Created:** [16 April 2021 14:57 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285 "2021-04-16T14:57:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Syedabd](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Syedabd](https://discourse.nodered.org/u/Syedabd)
#### Post date: [16 April 2021 14:57 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285/1 "2021-04-16T14:57:31Z")

</div>

Hi,

Can anyone help me out with how to include an **external URL for CSS in editorTheme in setttings.js file**  
Currently, I'm using an absolute path to customize theme

How to include external/remote URL in settings.

---

<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: [16 April 2021 14:59 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285/2 "2021-04-16T14:59:28Z")

</div>

There is no support for using external URLs via that setting - they have to be paths to local files.

I'm sure we could add support for something like that - if the string starts with `http` then pass it through as-is.

---

<div class="post-metadata">

### Author: ![Syedabd](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Syedabd](https://discourse.nodered.org/u/Syedabd)
#### Post date: [16 April 2021 15:03 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285/3 "2021-04-16T15:03:12Z")

</div>

@knolleary;You mean to say like this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1df28d58783e2d11a0cdd204bc215d69acd77b76.png)  
Can you provide an example for this - **if the string starts with `http` then pass it through as-is.**

---

<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: [16 April 2021 15:19 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285/4 "2021-04-16T15:19:43Z")

</div>

**We do not support urls today**. I am suggesting we could, in a future version of Node-RED, support them - and we would recognise they are a url because they would start with `http`.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [16 April 2021 16:52 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285/5 "2021-04-16T16:52:29Z")

</div>

No real need to add that I don't think. As settings.js is "simply" a node.js file, I think that you can already do it using an http request.

Personally, I'm not sure I would like that to be made a core feature - it certainly raises some security questions that would need some thought.

---

<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: [15 June 2021 16:53 UTC](https://discourse.nodered.org/t/how-to-add-external-url-in-settings-js-file/44285/6 "2021-06-15T16:53:02Z")

</div>

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