@@ -50,7 +50,7 @@ public void MapDashboardRoutes()
5050 _builder . MapGet ( prefixMatch + "/meta" , MetaInfo ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
5151 _builder . MapGet ( prefixMatch + "/stats" , Stats ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
5252 _builder . MapGet ( prefixMatch + "/metrics-history" , MetricsHistory ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
53- _builder . MapGet ( prefixMatch + "/health" , Health ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
53+ _builder . MapGet ( prefixMatch + "/health" , Health ) . AllowAnonymous ( ) ;
5454 _builder . MapGet ( prefixMatch + "/published/message/{id:long}" , PublishedMessageDetails ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
5555 _builder . MapGet ( prefixMatch + "/received/message/{id:long}" , ReceivedMessageDetails ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
5656 _builder . MapPost ( prefixMatch + "/published/requeue" , PublishedRequeue ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
@@ -61,7 +61,7 @@ public void MapDashboardRoutes()
6161 _builder . MapGet ( prefixMatch + "/nodes" , Nodes ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
6262 _builder . MapGet ( prefixMatch + "/list-ns" , ListNamespaces ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
6363 _builder . MapGet ( prefixMatch + "/list-svc/{namespace}" , ListServices ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
64- _builder . MapGet ( prefixMatch + "/ping" , PingServices ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit , _options . AuthorizationPolicy ) ;
64+ _builder . MapGet ( prefixMatch + "/ping" , PingServices ) . AllowAnonymous ( ) ;
6565 }
6666
6767 public async Task Metrics ( HttpContext httpContext )
@@ -438,4 +438,4 @@ public static int ToInt32OrDefault(this StringValues value, int defaultValue = 0
438438 {
439439 return int . TryParse ( value , out var result ) ? result : defaultValue ;
440440 }
441- }
441+ }
0 commit comments