Fix #28 specify a CSP

This commit is contained in:
Max Nuding 2023-04-26 17:52:21 +02:00
parent 1318b8f9c3
commit cfa5a950f1
Signed by: phlaym
GPG Key ID: A06651BAB6777237

View File

@ -12,6 +12,15 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter() adapter: adapter()
},
csp: {
directives: {
'script-src': ['self']
},
reportOnly: {
'script-src': ['self']
}
} }
}; };