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

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

View file

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