Compare commits

...

2 commits

3 changed files with 5 additions and 5 deletions

View file

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

View file

@ -40,7 +40,7 @@
"@deno/gfm": "jsr:@deno/gfm@^0.8.2", "@deno/gfm": "jsr:@deno/gfm@^0.8.2",
"@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1", "@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1",
"@jotsr/smart-css-bundler": "jsr:@jotsr/smart-css-bundler@^0.3.0", "@jotsr/smart-css-bundler": "jsr:@jotsr/smart-css-bundler@^0.3.0",
"@preact/signals": "npm:@preact/signals@^1.2.3", "@preact/signals": "https://esm.sh/*@preact/signals@^1.2.3",
"@preact/signals-core": "npm:@preact/signals-core@^1.6.1", "@preact/signals-core": "npm:@preact/signals-core@^1.6.1",
"@simplewebauthn/browser": "npm:@simplewebauthn/browser@^10.0.0", "@simplewebauthn/browser": "npm:@simplewebauthn/browser@^10.0.0",
"@simplewebauthn/server": "npm:@simplewebauthn/server@^10.0.0", "@simplewebauthn/server": "npm:@simplewebauthn/server@^10.0.0",
@ -51,7 +51,7 @@
"@std/json": "jsr:@std/json@^0.224.1", "@std/json": "jsr:@std/json@^0.224.1",
"@std/streams": "jsr:@std/streams@^0.224.5", "@std/streams": "jsr:@std/streams@^0.224.5",
"@univoq/": "https://deno.land/x/univoq@0.2.0/", "@univoq/": "https://deno.land/x/univoq@0.2.0/",
"preact": "npm:preact@^10.22.1", "preact": "npm:preact@10.22.0",
"univoq": "https://deno.land/x/univoq@0.2.0/mod.ts", "univoq": "https://deno.land/x/univoq@0.2.0/mod.ts",
"web-push": "npm:web-push@^3.6.7" "web-push": "npm:web-push@^3.6.7"
}, },

View file

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