mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-14 20:41:21 +08:00
♻️ refactor(middleware): remove duplicate CSP header assignment (#20548)
This commit is contained in:
committed by
GitHub
parent
48e67fc05a
commit
7be2d830a9
@@ -56,11 +56,6 @@ export function middleware(request: NextRequest) {
|
||||
contentSecurityPolicyHeaderValue,
|
||||
)
|
||||
|
||||
response.headers.set(
|
||||
'Content-Security-Policy',
|
||||
contentSecurityPolicyHeaderValue,
|
||||
)
|
||||
|
||||
return wrapResponseWithXFrameOptions(response, pathname)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user