mirror of https://github.com/luizdepra/hugo-coder.git

Carmine Carlo
17.08.2022 750ff9a602bb785f1356e87cc8e81f55618e55c7
Add jsdelivr to scriptsrc for Katex (#636)

2 files modified
8 ■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
exampleSite/config.toml 7 ●●●● patch | view | raw | blame | history
CONTRIBUTORS.md
@@ -105,3 +105,4 @@
- [Michael Weiss](https://mweiss.ch)
- [Simon Pai](https://github.com/simonpai)
- [Brenton Mallen](https://github.com/brentonmallen1)
- [Xiaoyang Luo](https://github.com/ccviolett/)
exampleSite/config.toml
@@ -82,7 +82,12 @@
  "https://fonts.googleapis.com/",
  "https://cdn.jsdelivr.net/"
]
scriptsrc = ["'self'", "'unsafe-inline'", "https://www.google-analytics.com"]
scriptsrc = [
  "'self'",
  "'unsafe-inline'",
  "https://www.google-analytics.com",
  "https://cdn.jsdelivr.net/"
]
prefetchsrc = ["'self'"]
# connect-src directive – defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
connectsrc = ["'self'", "https://www.google-analytics.com"]