diff --git a/security-headers.conf b/security-headers.conf index 6e2ab2a..d64ba3f 100644 --- a/security-headers.conf +++ b/security-headers.conf @@ -1,8 +1,8 @@ -add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' data:; connect-src 'self' https://api.github.com https://raw.githubusercontent.com; frame-ancestors 'self' https://tehwolf.de; form-action 'none'; base-uri 'self';" always; +add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-hashes' 'sha256-MhtPZXr7+LpJUY5qtMutB+qWfQtMaPccfe7QXtCcEYc=' 'sha256-90k8vHqdT80Brtxlv3oF18HQh4+vdtyWQb8gjs8xgiY='; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' data:; connect-src 'self' https://api.github.com https://raw.githubusercontent.com; frame-ancestors 'self' https://tehwolf.de; form-action 'none'; base-uri 'self';" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" always; -add_header Cross-Origin-Embedder-Policy "require-corp" always; +add_header Cross-Origin-Embedder-Policy "credentialless" always; add_header Cross-Origin-Opener-Policy "same-origin" always; -add_header Cross-Origin-Resource-Policy "same-origin" always; +add_header Cross-Origin-Resource-Policy "cross-origin" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always;