security: add a content security policy
This commit is contained in:
1 file changed
+10
-8
+10
-8
@@ -25,14 +25,16 @@ const config = {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
: auto(),
|
: auto(),
|
||||||
// csp: {
|
csp: {
|
||||||
// directives: {
|
directives: {
|
||||||
// 'script-src': ['self'],
|
'script-src': ['self'],
|
||||||
// 'object-src': ['none'],
|
},
|
||||||
// 'base-uri': ['none']
|
// must be specified with either the `report-uri` or `report-to` directives, or both
|
||||||
// },
|
reportOnly: {
|
||||||
// mode: 'nonce'
|
'script-src': ['self'],
|
||||||
// }
|
'report-uri': ['/'],
|
||||||
|
},
|
||||||
|
},
|
||||||
alias: {
|
alias: {
|
||||||
'mono-svelte': 'src/lib/mono',
|
'mono-svelte': 'src/lib/mono',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user