mirror of
https://github.com/langgenius/dify.git
synced 2026-04-19 18:27:27 +08:00
try disable csp for test
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user