diff --git a/pkg/loki/modules.go b/pkg/loki/modules.go index 9ab99376677bb..ce6c0df458ddb 100644 --- a/pkg/loki/modules.go +++ b/pkg/loki/modules.go @@ -354,8 +354,8 @@ func (t *Loki) initQueryFrontend() (_ services.Service, err error) { frontendHandler := middleware.Merge( serverutil.RecoveryHTTPMiddleware, - queryrange.StatsHTTPMiddleware, t.httpAuthMiddleware, + queryrange.StatsHTTPMiddleware, serverutil.NewPrepopulateMiddleware(), serverutil.ResponseJSONMiddleware(), ).Wrap(t.frontend.Handler())