docs(backend): 📝 add info on csp choices
This commit is contained in:
parent
0acbf16c02
commit
7a58769335
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue