Skip to content

Commit

Permalink
Add CCA Lite domains to Base Docs CSP. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-moore-cb authored Oct 4, 2023
1 parent 2c1257e commit dc3f01d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/base-docs/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ const contentSecurityPolicy = {
'default-src': ["'self'"],
'frame-ancestors': ["'self'"],
'form-action': ["'self'"],
'script-src': ["'self'", "'unsafe-inline'"],
'script-src': [
"'self'",
"'unsafe-inline'",
'https://static-assets.coinbase.com/js/cca/v0.0.1.js', // CCA Lite
'https://cca-lite.coinbase.com', // CCA Lite
'https://analytics-service-dev.cbhq.net', // CCA Lite
],
'style-src': ["'self'", "'unsafe-inline'"],
'img-src': ["'self'", 'data:'],
'connect-src': [
Expand All @@ -64,6 +70,7 @@ const contentSecurityPolicy = {
'wss://relay.walletconnect.com', // WalletConnect
'wss://relay.walletconnect.org',
'https://goerli.base.org', // Base Goerli RPC
'https://cca-lite.coinbase.com', // CCA Lite
],
'frame-src': ["'self'", 'https://player.vimeo.com'],
};
Expand Down

0 comments on commit dc3f01d

Please sign in to comment.