From 1a7f5e9fb58a0e2b4810b3f50c0981247279c2eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mime=20=C4=8Cuvalo?= Date: Tue, 16 Jul 2024 16:56:18 +0100 Subject: [PATCH] csp: enable image upload for dev mode (#4199) csp fix for dev image server ### Change type - [x] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [ ] `other` --- apps/dotcom/src/utils/csp.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dotcom/src/utils/csp.ts b/apps/dotcom/src/utils/csp.ts index 3001d66f4..39c5c40fc 100644 --- a/apps/dotcom/src/utils/csp.ts +++ b/apps/dotcom/src/utils/csp.ts @@ -5,6 +5,7 @@ export const cspDirectives: { [key: string]: string[] } = { `ws:`, `wss:`, 'blob:', + 'http://localhost:8788', `https://assets.tldraw.xyz`, `https://*.tldraw.workers.dev`, `https://*.ingest.sentry.io`,