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: image allow "data:" in csp (#19728)

Joelbd7094b9f52b
diff --git a/web/middleware.ts b/web/middleware.ts
index 01c78f19565..ac016945fd5 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 *;
+ img-src * data:;
font-src 'self';
object-src 'none';
base-uri 'self';