fix: allow Google Fonts in CSP #20

Merged
mark merged 1 commits from fix/csp-google-fonts into main 2026-03-01 11:35:13 +00:00

View File

@@ -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'; "