feat(csp):

This commit is contained in:
Julien Oculi 2024-07-09 11:28:30 +02:00
parent 8e56d5bd6d
commit 168ba95549
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,8 @@
"frontend",
"components",
"island",
"backend"
"backend",
"csp"
],
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"

View file

@ -19,8 +19,7 @@ export function useCsp(
imgSrc: [
...trustedDomains,
'data:',
'https://picsum.photos',
'https://fastly.picsum.photos',
'https:',
],
fontSrc: [...trustedDomains, 'https://cdn.jsdelivr.net'],
scriptSrc: ["'self'", "'strict-dynamic'"],