From 5040a7b82cf9405d28f86cf831aa194893651ebe Mon Sep 17 00:00:00 2001 From: Stanley Nguyen Date: Wed, 15 Nov 2023 13:23:09 +0800 Subject: [PATCH] fix(dd-rum): add missing host for connect-src (#329) modified: packages/backend/src/helpers/csp.ts --- packages/backend/src/helpers/csp.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/helpers/csp.ts b/packages/backend/src/helpers/csp.ts index 07d8162e8..69cd2465c 100644 --- a/packages/backend/src/helpers/csp.ts +++ b/packages/backend/src/helpers/csp.ts @@ -11,6 +11,7 @@ const helmetOptions: HelmetOptions = { connectSrc: [ "'self'", // For Datadog RUM + 'https://browser-intake-datadoghq.com', 'https://*.browser-intake-datadoghq.com', // Launch Darkly feature flags 'https://*.launchdarkly.com', @@ -47,6 +48,7 @@ const helmetOptions: HelmetOptions = { !appConfig.isDev && 'https://*.apollographql.com', ].filter(Boolean), upgradeInsecureRequests: [], + workerSrc: ['blob:'], }, }, crossOriginOpenerPolicy: {