mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-04 07:05:14 +08:00
♻️ refactor(middleware): remove duplicate CSP header assignment (#20548)
This commit is contained in:
parent
e40e9db39a
commit
157d916154
@ -56,11 +56,6 @@ 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