I searched and couldnt find a solution. We have a new install of Grafana setup and created some generic dashboards. We are trying to use a text box to show some external alerts from another monitoring system. We added a text box, changed the mode to html and added an iFrame. The issue is nothing appears inside the iframe. No authentication or anything is needed for the page and nothing fancy. Just a simple html table. I tried other websites but cannot get the iFrame to work. Is there a security setting or something I need to change?
I am having a similar problem.
I am using the example code here
All I get back is the same text/code instead of rendered html page. See screenshot below
The iframe works fine in Grafana v4.2.0, but not in v6.0.0 (RHEL)…
I would appreciate any hint how to solve this issue, because including an iframe is a crucial feature for us and I don’t want to downgrade to an older version.
disable_sanitize_html
If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities. Default is false. This settings was introduced in Grafana v6.0.
I am having the same issue, I have this in my grafana.ini, it seems like its not overriding the default config, even though --config=/etc/grafana/grafana.ini
[panels]
disable_sanitize_html = true
[security]
allow_embedding = true
cookie_samesite = none
grafana is deployed in kubernetes
grafana/grafana:6.5.2