From 3e249bbc342474f8003fcc4dc83bf8d8e9687652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Wed, 8 Jul 2026 07:33:40 +0400 Subject: [PATCH] feat: improve security headers and csp nonce handling --- categories.php | 2 +- countdown.php | 2 +- direct.php | 6 +-- includes/header.php | 2 +- includes/hero-section.php | 2 +- includes/pwa-init.php | 2 +- includes/security.php | 73 +++++++++++++++++++++++------------- includes/structured-data.php | 3 +- index.php | 4 +- recherche.php | 2 +- video.php | 6 +-- 11 files changed, 62 insertions(+), 42 deletions(-) diff --git a/categories.php b/categories.php index 50bb44f..f75b2bf 100644 --- a/categories.php +++ b/categories.php @@ -87,7 +87,7 @@ if ($categoryId && isset($allCategories[$categoryId])) { ?> - diff --git a/direct.php b/direct.php index 598cb8a..86b20bd 100644 --- a/direct.php +++ b/direct.php @@ -50,7 +50,7 @@ $liveStream = getLiveStream(); - ' . "\n"; + $nonce = getCspNonce(); + echo '' . "\n"; } ?> diff --git a/index.php b/index.php index abb4de7..f37e4ec 100644 --- a/index.php +++ b/index.php @@ -81,7 +81,7 @@ setSecurityHeaders(); ?> - - -