diff --git a/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java b/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java index 48dc0a3..04e6ac1 100755 --- a/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java +++ b/src/main/java/it/cnr/isti/epasmed/config/SecurityConfiguration.java @@ -90,8 +90,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { .permitAll().antMatchers("/api/account/reset-password/init").permitAll() .antMatchers("/api/account/reset-password/finish").permitAll().antMatchers("/api/**").authenticated() .antMatchers("/management/health").permitAll().antMatchers("/management/info").permitAll() - .antMatchers("/management/prometheus") - .hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS) + .antMatchers("/management/prometheus").permitAll() .antMatchers("/management/jhimetrics") .hasAnyAuthority(AuthoritiesConstants.ADMIN, AuthoritiesConstants.PROMETHEUS) .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN);