mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 19:55:58 +08:00
Revert "♻️ refactor(middleware): remove duplicate CSP header assignment" (#20592)
This commit is contained in:
parent
888cd86afd
commit
25be7c1ad5
@ -56,6 +56,11 @@ export function middleware(request: NextRequest) {
|
|||||||
contentSecurityPolicyHeaderValue,
|
contentSecurityPolicyHeaderValue,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
response.headers.set(
|
||||||
|
'Content-Security-Policy',
|
||||||
|
contentSecurityPolicyHeaderValue,
|
||||||
|
)
|
||||||
|
|
||||||
return wrapResponseWithXFrameOptions(response, pathname)
|
return wrapResponseWithXFrameOptions(response, pathname)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user