feat: improve security headers and csp nonce handling
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ if ($categoryId && isset($allCategories[$categoryId])) {
|
||||
?>
|
||||
|
||||
<!-- Script pour éviter le flash en mode sombre -->
|
||||
<script>
|
||||
<script nonce="<?php echo getCspNonce(); ?>">
|
||||
(function() {
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
const systemPrefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
|
||||
Reference in New Issue
Block a user