mirror of https://github.com/langgenius/dify.git
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