From 19ab594c7283fcd1d0e59450e9d4067308cfc134 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Wed, 8 Apr 2026 18:55:05 +0800 Subject: [PATCH] try disable csp for test --- web/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/proxy.ts b/web/proxy.ts index af9b290025..b7e4d12abb 100644 --- a/web/proxy.ts +++ b/web/proxy.ts @@ -24,7 +24,7 @@ export function proxy(request: NextRequest) { }, }) - const isWhiteListEnabled = !!env.NEXT_PUBLIC_CSP_WHITELIST && process.env.NODE_ENV === 'production' + const isWhiteListEnabled = !!env.NEXT_PUBLIC_CSP_WHITELIST if (!isWhiteListEnabled) return wrapResponseWithXFrameOptions(response, pathname)