From b9b3a64a8e2ec947587fc02f6f397188fe05d9bc Mon Sep 17 00:00:00 2001 From: toufic ar Date: Wed, 4 Mar 2026 03:58:40 +0200 Subject: [PATCH] csp check --- config/http/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/http/default.nix b/config/http/default.nix index a7080de..f375475 100644 --- a/config/http/default.nix +++ b/config/http/default.nix @@ -35,7 +35,7 @@ in { https "max-age=31536000; includeSubdomains; preload"; } more_set_headers 'Strict-Transport-Security: $hsts_header'; - more_set_headers 'Content-Security-Policy: default-src "none"'; + more_set_headers 'Content-Security-Policy: upgrade-insecure-requests; default-src "self"'; more_set_headers 'Referrer-Policy: origin-when-cross-origin'; more_set_headers 'X-Frame-Options: DENY'; more_set_headers 'X-Content-Type-Options: nosniff';