Optimized more CSP policies

This commit is contained in:
Kevin Veen-Birkenbach 2025-05-15 11:00:13 +02:00
parent 6b7314baac
commit 1031b61f6a
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 12 additions and 3 deletions

View File

@ -91,7 +91,8 @@ class FilterModule(object):
'frame-src',
'script-src',
'style-src',
'font-src'
'font-src',
'worker-src',
]
parts = []

View File

@ -5,6 +5,11 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
unsafe-inline: true
whitelist:
font-src:
- data:
oidc:
enabled: "{{ applications.nextcloud.features.oidc | default(true) }}" # Activate OIDC for Nextcloud
# floavor decides which OICD plugin should be used.

View File

@ -17,5 +17,5 @@ csp:
frame-src:
- "{{ web_protocol }}://*.{{primary_domain}}"
flags:
style-src-elem:
style-src:
unsafe-inline: true

View File

@ -21,4 +21,7 @@ csp:
style-src:
unsafe-inline: true
script-src:
unsafe-inline: true
unsafe-inline: true
whitelist:
worker-src:
- blob: