move directives to svelte config

This commit is contained in:
saiminh 2023-10-30 17:36:19 +01:00
parent c3cdb04e0c
commit 7f36ff9e96
2 changed files with 3 additions and 2 deletions

View file

@ -8,5 +8,4 @@ functions = "functions/"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "0"
X-Content-Type-Options = "nosniff"
Content-Security-Policy = "default-src 'self' *.cloudinary.com *.typekit.net;"
X-Content-Type-Options = "nosniff"

View file

@ -33,6 +33,8 @@ const config = {
csp: {
mode: 'auto',
directives: {
'default-src': ['self', '*.typekit.net'],
'img-src': ['self', '*.cloudinary.com', 'data:'],
'script-src': ['self', 'unsafe-eval', 'unsafe-inline']
},
},