fix: updated main (#12667)

This commit is contained in:
Devanshu Gupta 2025-04-23 00:44:12 +05:30 committed by GitHub
parent 09040c3ec1
commit 7995d967e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,7 @@ function setSecurityHeaders(app, configService) {
'cdn.jsdelivr.net',
'https://esm.sh',
'www.googletagmanager.com',
],
].concat(configService.get('CSP_WHITELISTED_DOMAINS')?.split(',') || []),
'object-src': ["'self'", 'data:'],
'media-src': ["'self'", 'data:'],
'default-src': [
@ -120,7 +120,7 @@ function setSecurityHeaders(app, configService) {
"'self'",
'blob:',
'www.googletagmanager.com',
],
].concat(configService.get('CSP_WHITELISTED_DOMAINS')?.split(',') || []),
'connect-src': ['ws://' + domain, "'self'", '*', 'data:'],
'frame-ancestors': ['*'],
'frame-src': ['*'],