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.

chore: remove image csp (#19511)

Joeld1c55cb90135
diff --git a/web/middleware.ts b/web/middleware.ts
index 7eb5f37f217..01c78f19565 100644
--- a/web/middleware.ts
+++ b/web/middleware.ts
@@ -37,7 +37,7 @@ export function middleware(request: NextRequest) {
style-src 'self' 'unsafe-inline' ${scheme_source} ${whiteList};
worker-src 'self' ${scheme_source} ${csp} ${whiteList};
media-src 'self' ${scheme_source} ${csp} ${whiteList};
- img-src 'self' ${scheme_source} ${csp} ${whiteList};
+ img-src *;
font-src 'self';
object-src 'none';
base-uri 'self';