From 71b05769ae8b96714b4222f5a28f69bd5ac999ee Mon Sep 17 00:00:00 2001 From: Tudor Date: Thu, 8 Jan 2026 11:13:07 +0000 Subject: [PATCH] Fix CSP connect-src to allow cdn.jsdelivr.net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow connections to cdn.jsdelivr.net for Chart.js resources. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index e3b8c3e..ef4b7a0 100644 --- a/backend/app.py +++ b/backend/app.py @@ -70,7 +70,7 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware): "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; " "font-src 'self' https://fonts.gstatic.com; " "img-src 'self' data:; " - "connect-src 'self'; " + "connect-src 'self' https://cdn.jsdelivr.net; " "frame-ancestors 'none'; " "base-uri 'self'; " "form-action 'self';"