I'm using example buttons - Dashboard 2 Beta development - #162 by hotNipi but finding whenever I load the DB page I have to re-authorized it
I'm using httpStaticAuth to protect endpoints, and thinking that it's due to the CSS using a static served image which is hosted in my NR instance.
If your are also using httpNodeAuth and depending on how you set httpStaticRoot and httpNodeRoot, the static paths may be behind 2 basic-auth middlewares.
Just tried hosting the image files in Github, and accessing them via Github Pages instead of serving them via node-RED static.
Seems to solve the problem
I can think of a number of potential security and operational related issues. But much depends on the detailed configuration.
It would certainly be better to work out why this is happening and fix it. I don't know enough about your config to suggest something I'm afraid.
You could turn the SVG into a data: embedded image but that is likely to be quite large. May be worth trying though. Then the image can be part of your CSS directly without having to load it.
If you now wonder how to do it - just find an online converter and convert the svg to the base64 string and then replace the content of the --icon_src url