Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion control-plane/internal/server/middleware/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func APIKeyAuth(config AuthConfig) gin.HandlerFunc {
}

// Allow UI static files to load (the React app handles auth prompting)
if strings.HasPrefix(c.Request.URL.Path, "/ui") {
// Also allow root "/" which redirects to /ui/
if strings.HasPrefix(c.Request.URL.Path, "/ui") || c.Request.URL.Path == "/" {
c.Next()
return
}
Expand Down
Loading