From a236bbb8d436cd69d2201039b381e9598e545c9b Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 19 Nov 2024 06:17:23 -0600 Subject: [PATCH] CSP: allow blob images for cropping avatars Signed-off-by: eternal-flame-AD --- packages/backend/src/server/csp.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/server/csp.ts b/packages/backend/src/server/csp.ts index aeee4eab3a..3e1e7962b8 100644 --- a/packages/backend/src/server/csp.ts +++ b/packages/backend/src/server/csp.ts @@ -30,6 +30,7 @@ export function generateCSP(hashedMap: Map, options: { [ '\'self\'', 'data:', + 'blob:', // 'https://avatars.githubusercontent.com', // uncomment this for contributor avatars to work options.mediaProxy ].filter(Boolean)],