diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index 7f1a43792..a83137f74 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -178,8 +178,8 @@ export class ClientServerService { const csp = this.config.contentSecurityPolicy ?? 'script-src \'self\' \'unsafe-eval\' ' + 'https://challenges.cloudflare.com https://hcaptcha.com https://*.hcaptcha.com https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://www.recaptcha.net/recaptcha/; ' + - 'base-uri \'self\'; object-src \'self\';'; - reply.header('Content-Security-Policy', csp); + 'base-uri \'self\'; object-src \'self\'; report-uri /csp-error'; + reply.header('Content-Security-Policy-Report-Only', csp); done(); });