Skip to content

Commit 5c4502a

Browse files
luizdepraLuiz F. A. de Prá
and
Luiz F. A. de Prá
authored
Comment CSP config (#728)
Co-authored-by: Luiz F. A. de Prá <[email protected]>
1 parent a98c473 commit 5c4502a

6 files changed

+37
-32
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
exampleSite/public/
44
exampleSite/resources/
55
*.lock
6+
public

exampleSite/config.toml

+22-22
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,28 @@ customJS = []
7474
# connectionString = "connectionString"
7575

7676
# If you want to implement a Content-Security-Policy, add this section
77-
[params.csp]
78-
childsrc = ["'self'"]
79-
fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
80-
formaction = ["'self'"]
81-
framesrc = ["'self'"]
82-
imgsrc = ["'self'"]
83-
objectsrc = ["'none'"]
84-
stylesrc = [
85-
"'self'",
86-
"'unsafe-inline'",
87-
"https://fonts.googleapis.com/",
88-
"https://cdn.jsdelivr.net/"
89-
]
90-
scriptsrc = [
91-
"'self'",
92-
"'unsafe-inline'",
93-
"https://www.google-analytics.com",
94-
"https://cdn.jsdelivr.net/"
95-
]
96-
prefetchsrc = ["'self'"]
97-
# connect-src directive – defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
98-
connectsrc = ["'self'", "https://www.google-analytics.com"]
77+
# [params.csp]
78+
# childsrc = ["'self'"]
79+
# fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
80+
# formaction = ["'self'"]
81+
# framesrc = ["'self'", "https://www.youtube.com"]
82+
# imgsrc = ["'self'"]
83+
# objectsrc = ["'none'"]
84+
# stylesrc = [
85+
# "'self'",
86+
# "'unsafe-inline'",
87+
# "https://fonts.googleapis.com/",
88+
# "https://cdn.jsdelivr.net/",
89+
# ]
90+
# scriptsrc = [
91+
# "'self'",
92+
# "'unsafe-inline'",
93+
# "https://www.google-analytics.com",
94+
# "https://cdn.jsdelivr.net/",
95+
# ]
96+
# prefetchsrc = ["'self'"]
97+
# # connect-src directive – defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
98+
# connectsrc = ["'self'", "https://www.google-analytics.com"]
9999

100100
[taxonomies]
101101
category = "categories"

exampleSite/resources/_gen/assets/scss/scss/coder-dark.scss_9e20ccd2d8034c8e0fd83b11fb6e2bd5.content

+6-4
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ body.colorscheme-dark {
4141
background-color: #424242;
4242
color: #dadada; }
4343
body.colorscheme-dark .highlight pre {
44-
color: #212121; }
45-
body.colorscheme-dark pre code {
44+
background-color: #424242;
45+
color: #dadada; }
46+
body.colorscheme-dark :not(.highlight) > pre code {
4647
background-color: inherit;
4748
color: inherit; }
4849
body.colorscheme-dark blockquote {
@@ -110,8 +111,9 @@ body.colorscheme-dark {
110111
background-color: #424242;
111112
color: #dadada; }
112113
body.colorscheme-auto .highlight pre {
113-
color: #212121; }
114-
body.colorscheme-auto pre code {
114+
background-color: #424242;
115+
color: #dadada; }
116+
body.colorscheme-auto :not(.highlight) > pre code {
115117
background-color: inherit;
116118
color: inherit; }
117119
body.colorscheme-auto blockquote {

0 commit comments

Comments
 (0)