Skip to content

Commit

Permalink
fix: missing MathJax resources (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
scissorsneedfoodtoo authored Jun 21, 2024
1 parent 3f4d318 commit 92ba680
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/config/helmet.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ export default {
'https://api.spotify.com',
'https://api.github.com',
'https://api.twitter.com',
'https://api.codesandbox.io'
'https://api.codesandbox.io',
'https://cdn.freecodecamp.org'
],
fontSrc: [
"'self'",
'data:',
'https://fonts.gstatic.com',
'https://cdn.freecodecamp.org'
],
fontSrc: ["'self'", 'data:', 'https://fonts.gstatic.com'],
objectSrc: ["'none'"],
upgradeInsecureRequests: [],
frameSrc: [
Expand Down
2 changes: 1 addition & 1 deletion src/templates/post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ else
type="text/javascript"
id="MathJax-script"
data-test-label="mathjax-script"
src="https://cdn.freecodecamp.org/news-assets/mathjax/3.2.2/tex-mml-chtml.min.js"
src="https://cdn.freecodecamp.org/news-assets/mathjax/3.2.2/es5/tex-mml-chtml.js"
defer
></script>
{% endif %}
Expand Down

0 comments on commit 92ba680

Please sign in to comment.