feat: Add CSP
This commit is contained in:
1 parent
d34e58d809
commit
429bad2fec
3 files changed
+7
-4
No files matched your search
+7
-1
@@ -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'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user