Template node does not load img tag with basic auth

Hello

I have a template node in my flow. Within the template node I have a

<img src="username:password@url_here", id="x", width="300", height="300">

This used to work fine until I updated both NR and IOS on my ipad which is used to view the dashboard. Now when I go into the dashboard it just shows a blank box (i.e. the img tag is not loading the URL).

Does anyone know if this is no longer possible using the latest NR? Or is this no longer possible with the latest version of IOS?

Is there any way to diagnose in the inspect viewer why the URL is not loading?

Are you using dashboard 1 or dashboard 2?
Can you supply a small example flow demonstrating the issue?

This is, of course, highly insecure so I hope that the id/password you use is not important and not used anywhere else.

Thanks for the reply

I think it’s because the dashboard is setup for https and the url in the img src tag is http and being blocked by the browser?

Even with https, passing the id and password in the url is insecure since intermediate proxies can and do record it. It may be that you can guarantee that there will not be any proxies in your setup but that is a very fragile assumption and you may still get the id/password recorded in logs.

Good point, but I am not sure how else to store the username/password to pass through? Is there a go-by or something I can read up on in order to make the installation more secure?

Where is that image? Is it on a server that you have to log into? Does the login give you a token on login?

It's okay I deleted the img src tag from the dashboard and found a way to use digest auth via a http request node. Thanks for the help all

1 Like

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