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\'']],