Commit e2434848 authored by Javi Corvi's avatar Javi Corvi
Browse files

readeness and liveness outside security login

parent 6d114230
Pipeline #26792 passed with stage
in 4 minutes and 25 seconds
......@@ -13,9 +13,13 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http.cors().and().csrf().disable().
//http.csrf().disable().
authorizeRequests().antMatchers(HttpMethod.OPTIONS, "/**").permitAll().anyRequest().authenticated()
authorizeRequests().
antMatchers(HttpMethod.OPTIONS, "/**").permitAll().
antMatchers(HttpMethod.GET, "/liveness").permitAll().
antMatchers(HttpMethod.GET, "/readeness").permitAll().anyRequest().authenticated()
.and().httpBasic();
}
@Autowired
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment