File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 for = " /news/*"
5050 [headers .values ]
5151 # Additionally allow YouTube/Discourse frames and scripts and MathJax
52- Content-Security-Policy = " default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'sha256-UPkidoMErzWw1gW/eY4LhAi9ZkPch3PP31d6KQoJ6Yc=' 'sha256-G40wI6OaLZXCtrb02xUq1H1kEVWjstzoQ0FXKwsWxPw=' 'sha256-NoYDhgfdmQGg59XPik/7lIF57F0zlpWNHiB+uKc1Lc8 =' https://mixxx.discourse.group/javascripts/embed.js *.discourse-cdn.com cdn.jsdelivr.net ; frame-src 'self' https://www.youtube-nocookie.com https://mixxx.discourse.group ; img-src 'self' https://i.ytimg.com ; connect-src 'self' https://mixxx.discourse.group https://*.discourse-cdn.com"
52+ Content-Security-Policy = " default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'sha256-UPkidoMErzWw1gW/eY4LhAi9ZkPch3PP31d6KQoJ6Yc=' 'sha256-G40wI6OaLZXCtrb02xUq1H1kEVWjstzoQ0FXKwsWxPw=' 'sha256-1CldwzdEg2k1wTmf7s5RWVd7NMXI/7nxxjJM2C4DqII =' https://mixxx.discourse.group/javascripts/embed.js *.discourse-cdn.com; frame-src 'self' https://www.youtube-nocookie.com https://mixxx.discourse.group ; img-src 'self' https://i.ytimg.com ; connect-src 'self' https://mixxx.discourse.group https://*.discourse-cdn.com"
Original file line number Diff line number Diff line change @@ -68,9 +68,10 @@ <h4>{% trans %}Comments{% endtrans %}</h4>
6868{% block extra_head %}
6969{% if article.comments and article.comments in ("true", "yes") %}
7070< script src ="{{ SITEURL }}/theme/js/discourse.js "> </ script >
71+ {% endif %}
7172{% if article.math and article.math in ("true", "yes") %}
7273{# Note that we don't insert any mathjax config. If you want to configure mathjax, see https://docs.mathjax.org/en/latest/web/configuration.html#configuring-mathjax #}
73- < script id =" MathJax-script " type =" text/javascript " src =" https://cdn. jsdelivr.net/npm/mathjax@3/es5/tex-svg.js " > </ script >
74- {% endif %}
74+ {# pinning the latest MathJax and using Subresource integrity (since that allows us to avoid whitelisting all of jsdelivr in the CSP) #}
75+ < script id =" MathJax-script " type =" text/javascript " integrity =" sha256-1CldwzdEg2k1wTmf7s5RWVd7NMXI/7nxxjJM2C4DqII= " crossorigin =" anonymous " src =" https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-svg.js " > </ script >
7576{% endif %}
7677{% endblock %}
You can’t perform that action at this time.
0 commit comments