add csp in svelte config
This commit is contained in:
parent
423ab1b4ef
commit
0daa333d52
1 changed files with 8 additions and 0 deletions
|
|
@ -31,6 +31,14 @@ const config = {
|
|||
// if `edge` is true, this option cannot be used
|
||||
split: false
|
||||
}),
|
||||
csp: {
|
||||
directives: {
|
||||
'script-src': ['self', '*.typekit.net', '*.cloudinary.com']
|
||||
},
|
||||
reportOnly: {
|
||||
'script-src': ['self', '*.typekit.net', '*.cloudinary.com']
|
||||
}
|
||||
}
|
||||
// prerender: {
|
||||
// force: true
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue