From b29f49fefc1b6353b2b9b870b216aeda9a7fe870 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Thu, 21 Nov 2024 11:21:45 -0600 Subject: [PATCH] add media proxy to worker-src 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 3e1e7962b8..adbebd0059 100644 --- a/packages/backend/src/server/csp.ts +++ b/packages/backend/src/server/csp.ts @@ -50,6 +50,7 @@ export function generateCSP(hashedMap: Map, options: { '\'wasm-unsafe-eval\'', ...scripts ]], + ['worker-src', ['\'self\'', options.mediaProxy].filter(Boolean)], ['object-src', ['\'none\'']], ['base-uri', ['\'self\'']], ['form-action', ['\'self\'']],