mirror of
https://github.com/langgenius/dify.git
synced 2026-04-12 14:10:42 +08:00
refactor: update Content Security Policy to allow 'wasm-unsafe-eval' and set nonce in response headers
This commit is contained in:
parent
faefc3492e
commit
1f4c541c0d
@ -56,7 +56,7 @@ export function middleware(request: NextRequest) {
|
||||
contentSecurityPolicyHeaderValue,
|
||||
)
|
||||
|
||||
response.headers.set('x-nonce', nonce)
|
||||
// response.headers.set('x-nonce', nonce)
|
||||
response.headers.set(
|
||||
'Content-Security-Policy',
|
||||
contentSecurityPolicyHeaderValue,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user