forked from CGM_Public/pretix_original
Add font-src to default CSP header
This commit is contained in:
@@ -186,6 +186,7 @@ class SecurityMiddleware(MiddlewareMixin):
|
|||||||
'style-src': ["{static}", "{media}", "'nonce-{nonce}'"],
|
'style-src': ["{static}", "{media}", "'nonce-{nonce}'"],
|
||||||
'connect-src': ["{dynamic}", "{media}", "https://checkout.stripe.com"],
|
'connect-src': ["{dynamic}", "{media}", "https://checkout.stripe.com"],
|
||||||
'img-src': ["{static}", "{media}", "data:", "https://*.stripe.com"],
|
'img-src': ["{static}", "{media}", "data:", "https://*.stripe.com"],
|
||||||
|
'font-src': ["{static}"],
|
||||||
# form-action is not only used to match on form actions, but also on URLs
|
# form-action is not only used to match on form actions, but also on URLs
|
||||||
# form-actions redirect to. In the context of e.g. payment providers or
|
# form-actions redirect to. In the context of e.g. payment providers or
|
||||||
# single-sign-on this can be nearly anything so we cannot really restrict
|
# single-sign-on this can be nearly anything so we cannot really restrict
|
||||||
|
|||||||
Reference in New Issue
Block a user