Skip to content

Commit

Permalink
Minor refactoring of CSP directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffswartz committed Nov 13, 2024
1 parent bdc244a commit 868208d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions server/serverMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,18 @@ const securityHeaders = helmet({
'cdnjs.cloudflare.com',
'assets.tokbox.com',
'www.google-analytics.com',
'https://unpkg.com/@vonage/client-sdk-video@2/dist/js/opentok.js',
'https://unpkg.com/@vonage/',
'static.opentok.com',
'www.googletagmanager.com',
'assets.adobedtm.com',
],
styleSrc: ["'self'", "'unsafe-inline'", 'cdnjs.cloudflare.com', 'assets.tokbox.com', 'static.opentok.com'],
styleSrc: [
"'self'",
"'unsafe-inline'",
'cdnjs.cloudflare.com',
'assets.tokbox.com',
'static.opentok.com',
],
connectSrc: ['*'],
imgSrc: ['*', 'data:'],
},
Expand Down

0 comments on commit 868208d

Please sign in to comment.