Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

♻️ refactor(middleware): remove duplicate CSP header assignment (#20548)

Muttakin Islam Hasib157d916154a8
diff --git a/web/middleware.ts b/web/middleware.ts
index 3fee535ea4e..33bdb974819 100644
--- a/web/middleware.ts
+++ b/web/middleware.ts
@@ -56,11 +56,6 @@ export function middleware(request: NextRequest) {
contentSecurityPolicyHeaderValue,
)
- response.headers.set(
- 'Content-Security-Policy',
- contentSecurityPolicyHeaderValue,
- )
-
return wrapResponseWithXFrameOptions(response, pathname)
}