Skip to content
Permalink
Browse files
Comment CSP config (#728)
Co-authored-by: Luiz F. A. de Prá <luiz.pra@luizalabs.com>
  • Loading branch information
luizdepra and Luiz F. A. de Prá committed Oct 17, 2022
1 parent a98c473 commit 5c4502ae75ad98ec90877eec0fe8f26331bdaaf3
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 32 deletions.
@@ -3,3 +3,4 @@
exampleSite/public/
exampleSite/resources/
*.lock
public
@@ -74,28 +74,28 @@ customJS = []
# connectionString = "connectionString"

# If you want to implement a Content-Security-Policy, add this section
[params.csp]
childsrc = ["'self'"]
fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
formaction = ["'self'"]
framesrc = ["'self'"]
imgsrc = ["'self'"]
objectsrc = ["'none'"]
stylesrc = [
"'self'",
"'unsafe-inline'",
"https://fonts.googleapis.com/",
"https://cdn.jsdelivr.net/"
]
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"]
# [params.csp]
# childsrc = ["'self'"]
# fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
# formaction = ["'self'"]
# framesrc = ["'self'", "https://www.youtube.com"]
# imgsrc = ["'self'"]
# objectsrc = ["'none'"]
# stylesrc = [
# "'self'",
# "'unsafe-inline'",
# "https://fonts.googleapis.com/",
# "https://cdn.jsdelivr.net/",
# ]
# 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"]

[taxonomies]
category = "categories"
@@ -41,8 +41,9 @@ body.colorscheme-dark {
background-color: #424242;
color: #dadada; }
body.colorscheme-dark .highlight pre {
color: #212121; }
body.colorscheme-dark pre code {
background-color: #424242;
color: #dadada; }
body.colorscheme-dark :not(.highlight) > pre code {
background-color: inherit;
color: inherit; }
body.colorscheme-dark blockquote {
@@ -110,8 +111,9 @@ body.colorscheme-dark {
background-color: #424242;
color: #dadada; }
body.colorscheme-auto .highlight pre {
color: #212121; }
body.colorscheme-auto pre code {
background-color: #424242;
color: #dadada; }
body.colorscheme-auto :not(.highlight) > pre code {
background-color: inherit;
color: inherit; }
body.colorscheme-auto blockquote {

0 comments on commit 5c4502a

Please sign in to comment.