1
0
Эх сурвалжийг харах

Add jsdelivr to scriptsrc for Katex (#636)

Carmine Carlo 4 жил өмнө
parent
commit
750ff9a602

+ 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"]