Skip to content

Commit

Permalink
Content-Security-Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
webees authored Nov 15, 2024
1 parent c65dc2c commit 525e0eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
encode zstd gzip

header / {
Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: https://*.xvx.cc; frame-ancestors 'self'"
# Enable HTTP Strict Transport Security (HSTS)
Strict-Transport-Security "max-age=31536000;"
# Enable cross-site filter (XSS) and tell browser to block detected attacks
Expand Down

0 comments on commit 525e0eb

Please sign in to comment.