Outgoing mails: Fix cross-browser support

This commit is contained in:
Raphael Michel
2026-01-30 11:37:10 +01:00
parent c40e34af57
commit 8c4e0bdb82
2 changed files with 5 additions and 2 deletions

View File

@@ -112,6 +112,9 @@ class OutgoingMailDetailView(OrganizerDetailViewMixin, OrganizerPermissionRequir
h = {}
csps = {
'frame-src': ['data:'],
# Unfortuantely, we can't avoid unsafe-inline for style here.
# See outgoingmail.js for the protection measures we take.
'style-src': ["'unsafe-inline'"],
}
_merge_csp(h, csps)
response['Content-Security-Policy'] = _render_csp(h)