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.

fix: upload avatar failed (#19853)

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