From 36ae1de2363e854383c1eaeef5b34a2ab227f7e7 Mon Sep 17 00:00:00 2001 From: harsh0641 Date: Thu, 19 Nov 2026 21:04:41 -0500 Subject: [PATCH] feat: add report-only CSP header --- web/next.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/next.config.ts b/web/next.config.ts index e11463d..433c34c 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -12,6 +12,11 @@ const securityHeaders = [ key: "Strict-Transport-Security", value: "max-age=63072000; includeSubDomains", }, + { + key: "Content-Security-Policy-Report-Only", + value: + "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https://lysis-3ocq.onrender.com https://*.supabase.co; frame-ancestors 'none'", + }, ]; const nextConfig: NextConfig = { @@ -30,4 +35,4 @@ const nextConfig: NextConfig = { }, }; -export default nextConfig; \ No newline at end of file +export default nextConfig;