From 7a587693359a535f22af2a7d269835fec60d673f Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Tue, 9 Jul 2024 11:10:13 +0200 Subject: [PATCH] docs(backend): :memo: add info on csp choices --- src/csp/middleware.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/csp/middleware.ts b/src/csp/middleware.ts index f5aa806..8dadfd2 100644 --- a/src/csp/middleware.ts +++ b/src/csp/middleware.ts @@ -6,6 +6,8 @@ export function useCsp( response: Response, ctx: FreshContext, ) { + //See https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/CSP + const trustedDomains = ["'self'", 'https://git.cohabit.fr'] const cspRules: CspRules = {