We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27a88dc commit 56640b4Copy full SHA for 56640b4
server/index.ts
@@ -94,13 +94,11 @@ app.use(
94
crossOriginEmbedderPolicy: false,
95
contentSecurityPolicy: {
96
directives: {
97
- 'connect-src':
98
- MODE === 'development'
99
- ? ['ws:', "'self'"]
100
- : process.env.SENTRY_DSN
101
- ? // if using self-hosted or relay server, use that url here
102
- ['*.ingest.sentry.io']
103
- : ["'self'"],
+ 'connect-src': [
+ MODE === 'development' ? 'ws:' : null,
+ process.env.SENTRY_DSN ? '*.ingest.sentry.io' : null,
+ '"self"',
+ ].filter(Boolean),
104
'font-src': ["'self'"],
105
'frame-src': ["'self'"],
106
'img-src': ["'self'", 'data:'],
0 commit comments