# Connection refused

**URL:** <https://discourse.nodered.org/t/connection-refused/76014>\
**Category:** General\
**Created:** [2 March 2023 18:19 UTC](https://discourse.nodered.org/t/connection-refused/76014 "2023-03-02T18:19:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giacomo23](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Giacomo23](https://discourse.nodered.org/u/Giacomo23)\
**Post date:** [2 March 2023 18:19 UTC](https://discourse.nodered.org/t/connection-refused/76014/1 "2023-03-02T18:19:20Z")

</div>

Hi everyone, I'm trying to insert a link (test.local:3456) inside my dashboard but I get the connection refused error.

 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/34f680c3e7e8877d9ff04eed06da378c254b7eb9.png)

If I try other links like the node red one as well as test.local:1880 then it shows me

![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/126336fdd22533ac476cfd3b5864868d565bb09f.png)

i used the template block and this is the code i wrote.  
 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a78e10e53d6d51ba98a601d6d72d26b0a0dc3303.png)

> iframe src="[http://test.local:1880/](http://test.local:1880/)"\> /iframe\>

(I wrote the code without \< because otherwise it wouldn't let me see it here in the forum.)

---

<div class="post-metadata">

**Author:** ![Marc123](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marc123/32/76924_2.png) [@Marc123](https://discourse.nodered.org/u/Marc123)\
**Post date:** [2 March 2023 20:25 UTC](https://discourse.nodered.org/t/connection-refused/76014/2 "2023-03-02T20:25:46Z")

</div>

If I understand correctly, you want an iframe?

Your easiest bet is to use the "node-red-node-ui-iframe" node, it even has options like the page scale and origin built right into the config editor. In the node's config, enter "[http://test.local:1880](http://test.local:1880)", and assign it to a dashboard tab and group like normal.

---

<div class="post-metadata">

**Author:** ![Giacomo23](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Giacomo23](https://discourse.nodered.org/u/Giacomo23)\
**Post date:** [2 March 2023 22:31 UTC](https://discourse.nodered.org/t/connection-refused/76014/3 "2023-03-02T22:31:59Z")

</div>

tried but still doesn't work  
 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/012c106ebecb5f0cec7b3bd5dbcf68c3978eda7a.png)

 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/0/1053170eab87127814efbc638c6b085fd9c9db85.png)

This is the page I need to view:

 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/6796d4cb1efe6124937deb882692bb1224519b4b.png)

---

<div class="post-metadata">

**Author:** ![Marc123](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marc123/32/76924_2.png) [@Marc123](https://discourse.nodered.org/u/Marc123)\
**Post date:** [3 March 2023 01:29 UTC](https://discourse.nodered.org/t/connection-refused/76014/4 "2023-03-03T01:29:12Z")

</div>

Did you check that the page loads on a browser **on the same machine that is running Node-RED**?

It looks like the remote device (the alexa) is not allowing the iframe to connect, it is saying "connection denied by test.local" not "unreachable"

Another thing you could try is setting the **origin** in the iframe settings to a user agent of a common browser, for example:  
_"Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion"_

---

<div class="post-metadata">

**Author:** ![Giacomo23](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Giacomo23](https://discourse.nodered.org/u/Giacomo23)\
**Post date:** [3 March 2023 09:53 UTC](https://discourse.nodered.org/t/connection-refused/76014/5 "2023-03-03T09:53:34Z")

</div>

the page loads both on the local machine and on a machine on the same network.  
I tried now to change origin as you told me but the problem persists.  
I attach photos:

 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/39bba5c87c68f723579c35b785fb1926f968a33a.png)  
 ![11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/012c106ebecb5f0cec7b3bd5dbcf68c3978eda7a.png)

---

<div class="post-metadata">

**Author:** ![Giacomo23](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Giacomo23](https://discourse.nodered.org/u/Giacomo23)\
**Post date:** [5 March 2023 10:47 UTC](https://discourse.nodered.org/t/connection-refused/76014/6 "2023-03-05T10:47:57Z")

</div>

The problem is:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/5056c8803282982720fa53172e46a8ced29fa96e.png)  
and resolve temporaly with extension chrome:

> **[Ignore X-Frame headers](https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe/related)**
>
> Drops X-Frame-Options and Content-Security-Policy HTTP response headers, allowing all pages to be iframed.

but here's how I said it fixes it temporarily, do you happen to know how to make it work without a chrome extension?

---

<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 May 2023 10:48 UTC](https://discourse.nodered.org/t/connection-refused/76014/7 "2023-05-04T10:48:54Z")

</div>

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