Explorar o código

Add jsdelivr to scriptsrc for Katex (#636)

Carmine Carlo %!s(int64=4) %!d(string=hai) anos
pai
achega
750ff9a602
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 1 0
      CONTRIBUTORS.md
  2. 6 1
      exampleSite/config.toml

+ 1 - 0
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/)

+ 6 - 1
exampleSite/config.toml

@@ -82,7 +82,12 @@ stylesrc = [
   "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"]