Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math/TeX formula not rendered in Grafana dashboard #13

Open
amotl opened this issue Oct 29, 2019 · 1 comment
Open

Math/TeX formula not rendered in Grafana dashboard #13

amotl opened this issue Oct 29, 2019 · 1 comment

Comments

@amotl
Copy link
Member

amotl commented Oct 29, 2019

This is just a reminder in order to properly document the GF_PANELS_DISABLE_SANITIZE_HTML=true setting.

The functionality is working OK, however the formula's are not getting rendered.
As far as I could see the MathJax JS library is referenced in one of the HTML frames, but still the rendering is not occurring. Please advise.

You will find more details at https://source.irceline.be/corona-eu/luftdatenpumpe/issues/10.

@amotl
Copy link
Member Author

amotl commented Oct 29, 2019

@wetterfrosch said about this:

Background

Finally I remember: There was a "sanitize_html"-feature enabled by default in transition to Grafana v6.0.0-beta1, see breaking changes in the changelog.

We have enable the disable_sanitize_html option in the [panels]-section of the grafana.ini configuration file or set the environment variable GF_PANELS_DISABLE_SANITIZE_HTML=true. Beware: This allows some vectors for cross-site-scripting-attacks.

Solution

[panels]
# If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities.
disable_sanitize_html = true

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant