web/svelte.config: allow inline img event call

will be used for smooth fade in of images
This commit is contained in:
wukko 2025-05-04 15:10:53 +06:00
parent c9dfd60068
commit 6370420392
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -78,6 +78,13 @@ const config = {
"sha256-g67gIjM3G8yMbjbxyc3QUoVsKhdxgcQzCmSKXiZZo6s=", "sha256-g67gIjM3G8yMbjbxyc3QUoVsKhdxgcQzCmSKXiZZo6s=",
], ],
"script-src-attr": [
"unsafe-hashes",
// hash of inline img event call
// see: https://github.com/sveltejs/svelte/issues/14014
"sha256-7dQwUgLau1NFCCGjfn9FsYptB6ZtWxJin6VohGIu20I="
],
"frame-ancestors": ["none"] "frame-ancestors": ["none"]
} }
}, },