Grafana 401 error

I have HassOS with Grafana as an AddOn, and I’m trying to embed a Grafana graph in a Lovelace card. I’m able to do that no problem with my browser – that is until I go away for a while and come back. Same deal if I try and look at my graph on a mobile. I see a 401 error.

In either case, if I open Grafana to see the graphs there and come back to the Lovelace dashboard, then my graphs show up fine. My guess is that going over to Grafana sets up the right cookies for the embedded graph to show up.

How can I make this work without having to open Grafana first?

It sets up an ingress authorisation. Alternative, posted earlier today:

Unfortunately, this does not work for me. Once I set the port, I can no longer access Grafana. If I try and show the web UI then I get a Bad Gateway. If I try going to ip:port in my browser then it can’t connect. Looks like I need to keep digging.