mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 14:14:17 +08:00
parent
19ab594c72
commit
5b3616aa33
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user