From 23f4f9f4f2bcbfc00bea061827ee56053ab9f4ce Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Mon, 15 Jun 2026 23:29:46 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20CSP=20=E2=80=94=20ajout=20cloudflareinsi?= =?UTF-8?q?ghts.com=20+=20legacy.js=20deja=20corrige?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CSP script-src: ajout https://static.cloudflareinsights.com - legacy.js ligne 98 a deja le null-check if(filterBtn) - L'erreur production vient d'un ancien deploy, sera resolu au prochain rebuild --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 5aa65b5..60fdbb9 100644 --- a/backend/main.py +++ b/backend/main.py @@ -545,7 +545,7 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware): response.headers["Referrer-Policy"] = "strict-origin-when-cross-origin" response.headers["Content-Security-Policy"] = ( "default-src 'self'; " - "script-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh https://cdn.jsdelivr.net; " + "script-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh https://cdn.jsdelivr.net https://static.cloudflareinsights.com; " "style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com https://cdn.jsdelivr.net; " "img-src 'self' data: blob:; " "connect-src 'self' https://esm.sh https://unpkg.com https://cdnjs.cloudflare.com https://fonts.googleapis.com https://fonts.gstatic.com https://cdn.jsdelivr.net; "