docs(backend): 📝 add info on csp choices

This commit is contained in:
Julien Oculi 2024-07-09 11:10:13 +02:00
parent 0acbf16c02
commit 7a58769335

View file

@ -6,6 +6,8 @@ export function useCsp(
response: Response, response: Response,
ctx: FreshContext, ctx: FreshContext,
) { ) {
//See https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/CSP
const trustedDomains = ["'self'", 'https://git.cohabit.fr'] const trustedDomains = ["'self'", 'https://git.cohabit.fr']
const cspRules: CspRules = { const cspRules: CspRules = {