Revert "try disable csp for test"

This reverts commit 19ab594c72.
This commit is contained in:
Stephen Zhou 2026-04-08 19:05:33 +08:00
parent 19ab594c72
commit 5b3616aa33
No known key found for this signature in database

View File

@ -24,7 +24,7 @@ export function proxy(request: NextRequest) {
},
})
const isWhiteListEnabled = !!env.NEXT_PUBLIC_CSP_WHITELIST
const isWhiteListEnabled = !!env.NEXT_PUBLIC_CSP_WHITELIST && process.env.NODE_ENV === 'production'
if (!isWhiteListEnabled)
return wrapResponseWithXFrameOptions(response, pathname)