File tree Expand file tree Collapse file tree
src/main/java/com/faforever/api/config/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .faforever .api .config .security ;
22
33import com .faforever .api .security .FafAuthenticationConverter ;
4+ import org .springframework .boot .security .autoconfigure .actuate .web .servlet .EndpointRequest ;
45import org .springframework .context .annotation .Bean ;
56import org .springframework .context .annotation .Configuration ;
67import org .springframework .http .HttpMethod ;
@@ -37,6 +38,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
3738 });
3839 http .authorizeHttpRequests (authorizeConfig -> {
3940 authorizeConfig .requestMatchers (HttpMethod .OPTIONS ).permitAll ();
41+ authorizeConfig .requestMatchers (EndpointRequest .to ("health" , "info" , "prometheus" )).permitAll ();
4042 // Swagger UI
4143 authorizeConfig .requestMatchers (
4244 "/swagger-ui/**" ,
You can’t perform that action at this time.
0 commit comments