Logging into grafana via iframe

Hi,

I am accessing my open source grafana through an iframe so the customer we intend to give access te our grafana dashboards can have a professional environment for data analysis.

These are the settings I have setup now.

image

We intend to have multiple customers, so logging in would be great to give different users access to different dashboards.

Now when I log into grafana in the iframe, the iframe just loads back to the same login page instead of actually logging in.

Any idea on a fix perhaps?

Check browser console (make sure it doesn’t clear between page reloads). I guess there will be block for some login cookie, probably samesite attribute needs to be configured.

could you elaborate a bit more on that?

could this be of any issue:

image

Random example from Google: