From 69aa1459ebbffe01ec4569177578537904b50bca Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Fri, 22 May 2026 19:44:18 +0200 Subject: [PATCH] feat: show mail import history --- backend/app/middleware/security.py | 6 +- backend/app/templates/mail_sources.html | 124 ++++++++++++++++++++++++ backend/app/tests/test_security.py | 12 +++ docs/development/roadmap.md | 3 +- docs/milestones.md | 3 +- docs/todo.md | 1 + 6 files changed, 145 insertions(+), 4 deletions(-) diff --git a/backend/app/middleware/security.py b/backend/app/middleware/security.py index a1d2523..b41e4b4 100644 --- a/backend/app/middleware/security.py +++ b/backend/app/middleware/security.py @@ -73,8 +73,10 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware): # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP csp_directives = [ "default-src 'self'", - # TODO: Remove 'unsafe-inline' - requires moving inline scripts to external files # pylint: disable=fixme - "script-src 'self' 'unsafe-inline'" + # TODO: Remove 'unsafe-inline' and 'unsafe-eval' - requires moving inline + # scripts to external files and replacing the standard Alpine CDN build + # with the CSP-compatible build. # pylint: disable=fixme + "script-src 'self' 'unsafe-inline' 'unsafe-eval'" " https://cdn.tailwindcss.com https://cdn.jsdelivr.net", # TODO: Remove 'unsafe-inline' - requires moving inline styles to CSS or using nonces # pylint: disable=fixme "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com" diff --git a/backend/app/templates/mail_sources.html b/backend/app/templates/mail_sources.html index d691408..2eed4bd 100644 --- a/backend/app/templates/mail_sources.html +++ b/backend/app/templates/mail_sources.html @@ -105,6 +105,14 @@ + + + {% endcall %} + {% call card_content() %} + + + + {% endcall %} + {% endcall %} + +