Skip to content

Commit

Permalink
Update worker-src CSP (#796)
Browse files Browse the repository at this point in the history
* update worker-src CSP

* add google translate to our CSP
  • Loading branch information
kirkas authored Aug 7, 2024
1 parent 4b837e3 commit a673858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const contentSecurityPolicy = {
ccaLiteDomains,
walletconnectDomains,
],
'worker-src': ['blob:'],
'worker-src': ["'self'"],
'connect-src': [
"'self'",
'https://blob.vercel-storage.com', // Vercel File storage
Expand Down Expand Up @@ -106,6 +106,7 @@ const contentSecurityPolicy = {
'https://api.lab.amplitude.com/sdk/v2/vardata',
'https://browser-intake-datadoghq.com', // datadog
'https://*.datadoghq.com', //datadog
'https://translate.googleapis.com', // Let user translate our website
],
'frame-ancestors': ["'self'", baseXYZDomains],
'form-action': ["'self'", baseXYZDomains],
Expand Down

0 comments on commit a673858

Please sign in to comment.