auth: add /query/external/* to anonymous whitelist
1 files changed, 2 insertions(+), 1 deletions(-) M auth/middleware.go
M auth/middleware.go => auth/middleware.go +2 -1
@@ 671,7 671,8 @@ func Middleware(conf ini.File, apiconf string) func(http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if !strings.HasPrefix(r.URL.Path, "/query") || r.URL.Path == "/query/metrics" || r.URL.Path == "/query/api-meta.json" { r.URL.Path == "/query/api-meta.json" || strings.HasPrefix(r.URL.Path, "/query/external/") { next.ServeHTTP(w, r) return }