Add some special headers.

This commit is contained in:
James Cole 2021-04-07 20:47:40 +02:00
parent c76d140d0b
commit 4ecda4d4e0
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -53,8 +53,9 @@ class SecureHeaders
$csp = [
"default-src 'none'",
"object-src 'self'",
sprintf("script-src 'unsafe-inline' 'nonce-%1s' %2s", $nonce, $trackingScriptSrc),
"style-src 'self' 'unsafe-inline'",
sprintf("script-src 'unsafe-inline' 'nonce-%1s' %2s 'strict-dynamic'", $nonce, $trackingScriptSrc),
"style-src 'self'",
"frame-ancestors 'none'",
"base-uri 'self'",
"font-src 'self' data:",
"connect-src 'self'",