Skip to content

Commit

Permalink
fix(dd-rum): add missing host for connect-src (#329)
Browse files Browse the repository at this point in the history
modified:   packages/backend/src/helpers/csp.ts
  • Loading branch information
stanleynguyen authored Nov 15, 2023
1 parent 13f6228 commit 5040a7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/helpers/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -47,6 +48,7 @@ const helmetOptions: HelmetOptions = {
!appConfig.isDev && 'https://*.apollographql.com',
].filter(Boolean),
upgradeInsecureRequests: [],
workerSrc: ['blob:'],
},
},
crossOriginOpenerPolicy: {
Expand Down

0 comments on commit 5040a7b

Please sign in to comment.