Update proxy.ts

This commit is contained in:
Stefan Lazic committed 2026-08-04 10:13:10 +01:00
1 parent 4785510144
commit 4eb93411bb
1 file changed
+7 -1
+7 -1
View File
@@ -65,7 +65,13 @@ function buildCsp(): string {
"default-src 'self'",
`script-src ${scriptSrc}`,
"style-src 'self' 'unsafe-inline'",
"img-src 'self' data:",
// 'https:' (not just 'self' data:) — business logos/cover images are
// arbitrary externally-hosted URLs an owner pastes into Business
// Settings or the installer (see src/lib/business/branding.ts); there
// is no fixed set of allowed hosts to enumerate. Scoped to https: only
// (never http:), so this doesn't reopen the door to insecure image
// loads generally.
"img-src 'self' data: https:",
"font-src 'self'",
"connect-src 'self'",
"worker-src 'self'",