Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

security: restrict session POST endpoints to bearer-only auth

Boschd2335d02181a
diff --git a/internal/handlers/middleware.go b/internal/handlers/middleware.go
index 080c2acd..0bd54451 100644
--- a/internal/handlers/middleware.go
+++ b/internal/handlers/middleware.go
@@ -215,10 +215,6 @@ func cookieAuthAllowed(r *http.Request) bool {
switch {
case path == "/api/auth/elevate":
return true
- case path == "/api/sessions":
- return true
- case strings.HasPrefix(path, "/api/sessions/"):
- return true
case strings.HasPrefix(path, "/api/agents/") && strings.HasSuffix(path, "/events"):
return true
case path == "/action":