Add content-security-policy headers
1 file changed, 2 insertions(+), 0 deletions(-)
jump to
M Caddyfile → Caddyfile
@@ -30,6 +30,7 @@ header { Cache-Control max-age=86400 X-Content-Type-Options nosniff Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + Content-Security-Policy "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'unsafe-inline'; frame-ancestors 'none'" } redir /pronouns https://en.pronouns.page/@alanpearce@@ -49,6 +50,7 @@ header { Cache-Control max-age=14400 X-Content-Type-Options nosniff Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + Content-Security-Policy "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'unsafe-inline'; frame-ancestors 'none'" } handle_errors { @404 expression `{err.status_code} == 404`