From abcf4a5730260380e15648319baea92aaaa3ee04 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Wed, 8 Apr 2026 19:06:15 +0800 Subject: [PATCH] try disable csp --- web/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/proxy.ts b/web/proxy.ts index af9b290025..7560021874 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 && process.env.NODE_ENV === 'production') if (!isWhiteListEnabled) return wrapResponseWithXFrameOptions(response, pathname)