Merge pull request 'fix: allow Google Fonts in CSP' (#20) from fix/csp-google-fonts into main
Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
@@ -25,9 +25,9 @@ class SecurityHeadersMiddleware:
|
||||
response["Content-Security-Policy"] = (
|
||||
f"default-src 'self'; "
|
||||
f"script-src 'self' 'nonce-{nonce}'; "
|
||||
"style-src 'self'; "
|
||||
"style-src 'self' https://fonts.googleapis.com; "
|
||||
"img-src 'self' data: blob:; "
|
||||
"font-src 'self'; "
|
||||
"font-src 'self' https://fonts.gstatic.com; "
|
||||
"connect-src 'self'; "
|
||||
"object-src 'none'; "
|
||||
"base-uri 'self'; "
|
||||
|
||||
Reference in New Issue
Block a user