add csp in svelte config

This commit is contained in:
saiminh 2023-10-30 15:54:07 +01:00
parent 423ab1b4ef
commit 0daa333d52

View file

@ -31,6 +31,14 @@ const config = {
// if `edge` is true, this option cannot be used // if `edge` is true, this option cannot be used
split: false split: false
}), }),
csp: {
directives: {
'script-src': ['self', '*.typekit.net', '*.cloudinary.com']
},
reportOnly: {
'script-src': ['self', '*.typekit.net', '*.cloudinary.com']
}
}
// prerender: { // prerender: {
// force: true // force: true
// } // }