feat: Add CSP

This commit is contained in:
Xyphyn committed 2023-07-10 09:18:42 -07:00
1 parent d34e58d809
commit 429bad2fec
3 files changed
+7 -4

No files matched your search

+7 -1
View File
@@ -11,7 +11,13 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// 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.
adapter: adapter(),
adapter: adapter(),
csp: {
directives: {
'script-src': ['self']
},
mode: 'nonce'
}
}
};