mirror of
https://github.com/langgenius/dify.git
synced 2025-12-20 06:32:45 +00:00
Revert "♻️ refactor(middleware): remove duplicate CSP header assignment" (#20592)
This commit is contained in:
@@ -56,6 +56,11 @@ export function middleware(request: NextRequest) {
|
||||
contentSecurityPolicyHeaderValue,
|
||||
)
|
||||
|
||||
response.headers.set(
|
||||
'Content-Security-Policy',
|
||||
contentSecurityPolicyHeaderValue,
|
||||
)
|
||||
|
||||
return wrapResponseWithXFrameOptions(response, pathname)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user