π OpenHands: AI-Driven Development
[APP-369] Fix: Allow public access to shared conversations and events (#12411)
Tim O'Farrell6ccd42bb2975
diff --git a/enterprise/server/middleware.py b/enterprise/server/middleware.pyindex 81780a8b10..bf8ba18706 100644--- a/enterprise/server/middleware.py+++ b/enterprise/server/middleware.py@@ -166,6 +166,12 @@ class SetAuthCookieMiddleware:if path in ignore_paths:return False+ # Allow public access to shared conversations and events+ if path.startswith('/api/shared-conversations') or path.startswith(+ '/api/shared-events'+ ):+ return False+is_mcp = path.startswith('/mcp')is_api_route = path.startswith('/api')return is_api_route or is_mcp