I have my Grafana instance embedded on a page on my website, but I’m running into an issue when the user is on the page when their browser is in incognito mode.
When they login a “Success” flashes at the right side but ends up just looping the user back to an empty login screen. They can successfully login and access Grafana when their browser is not in this mode.
Is there some configuring setting I may be missing? These are the key variables in the .ini:
allow_embedding = true
cookie_samesite = none
cookie_secure = true
I believe this is an issue fundamental to how Chrome handles session state with incognito mode, and there’s probably not much you can do about it. There’s a link here to where this comes up with other software (not Grafana), indicating this is just a limitation of incognito mode.
Note that we really don’t recommend running Grafana inside of an iFrame as you’re describing, but you are free to do it. There’s a page that talks extensively about embedding Grafana and a number of security considerations relevant to this, which are the reasons why we don’t recommend it.
1 Like
I expected as much. Thanks for the response and article!