Show WebPage on Dashboard

I'm trying to show a web page on my dashboard for additional information. For testing I tried to show "https://duckduckgo.com/". But on the dashboard all I see is a error message stating: duckduckgo refused to connect. I used a template node and iframe to show the message. The complete flow is posted here. What am I doing wrong?

[{"id":"afc87756.fa10b8","type":"ui_template","z":"02569741c45c41a4","group":"d08e9520.258a68","name":"www","order":0,"width":0,"height":0,"format":"<iframe style=\"width:558px; height:400px;\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"https://duckduckgo.com\"></iframe>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"local","className":"","x":810,"y":700,"wires":[["51d093821ca63304"]]},{"id":"d08e9520.258a68","type":"ui_group","name":"www","tab":"c36f57c4.301058","order":1,"disp":false,"width":"35"},{"id":"c36f57c4.301058","type":"ui_tab","name":"Button Panel","icon":"dashboard"}]

most probably this error occurs because you using an SSL (that is secure) website as src, and Node-RED is not using a certificate - so try replacing with an http URL instead example http://neverssl.com/, if you want to use iframe with a secure connection , you would need node-red server secured

Thanks for this input. http://neverssl.com/ worked with iframe. So is there an other way to display a secure page on the dashboard?

you would need to have node-red secured with a certificate, etc. - so rather than http://localhost , it should be https://localhost - now this is a different discussion.. follow the docs to have a secure node-red server and try with a self-signed certificate then see if this works..

check the link Securing Node-RED : Node-RED
under Enabling HTTPS Access

Really NOT a good idea, the pages are secure for a reason. :slight_smile:

The forum has lots of info on securing Node-RED and you can run a proxy instead of messing with Node-RED if you want to - just let the proxy deal with the TLS part.

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