Skip to content

Commit

Permalink
Netlify: Allow MathJax fonts in Content-Security-Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Aug 18, 2024
1 parent 30e1aeb commit 83bdad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# because it's needed for RTD theme navigation and the search function:
# https://github.com/readthedocs/sphinx_rtd_theme/issues/817
# We also allow loading MathJax, which is needed to render math formulas.
Content-Security-Policy = "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' https://cdn.jsdelivr.net/npm/mathjax@3/ 'unsafe-inline'"
Content-Security-Policy = "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' https://cdn.jsdelivr.net/npm/mathjax@3/ 'unsafe-inline'; font-src 'self' https://cdn.jsdelivr.net/npm/mathjax@3/"

# Disable all browser features that we don't need. Unfortunately
# there is no way to specify a default for all directives yet, so
Expand Down

0 comments on commit 83bdad1

Please sign in to comment.