Skip to content

Commit

Permalink
Set "minimal" Content-Security-Policy HTTP header
Browse files Browse the repository at this point in the history
This is the minimum configuration required to render the home page for the website
  • Loading branch information
jeremy-jameson committed Nov 16, 2021
1 parent 2ba6b38 commit b2b6c79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ enableGitInfo = true
[[server.headers]]
for = '/**'
[server.headers.values]
Content-Security-Policy = "default-src 'self'; connect-src 'self' https://www.google-analytics.com; font-src 'self' data: https://cdnjs.cloudflare.com; img-src 'self' data: https://*.technologytoolbox.com; script-src 'self' 'unsafe-inline' data: https://cdnjs.cloudflare.com https://www.google-analytics.com; style-src 'self' https://cdnjs.cloudflare.com;"
X-Frame-Options = 'DENY'
1 change: 1 addition & 0 deletions static/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"globalHeaders": {
"Content-Security-Policy": "default-src 'self'; connect-src 'self' https://www.google-analytics.com; font-src 'self' data: https://cdnjs.cloudflare.com; img-src 'self' data: https://*.technologytoolbox.com; script-src 'self' 'unsafe-inline' data: https://cdnjs.cloudflare.com https://www.google-analytics.com; style-src 'self' https://cdnjs.cloudflare.com;",
"X-Frame-Options": "DENY"
}
}
2 changes: 1 addition & 1 deletion themes/techtoolbox-hugo

0 comments on commit b2b6c79

Please sign in to comment.