[APP-369] Fix: Allow public access to shared conversations and events (#12411)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Tim O'Farrell
2026-01-14 09:47:47 -07:00
committed by GitHub
parent 1146ea2274
commit 6ccd42bb29

View File

@@ -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