Skip to content
Snippets Groups Projects
Commit 03c2e522 authored by Bhushan Rade's avatar Bhushan Rade
Browse files

Merge branch 'disable-spring-web-security-205' into 'master'

disable-spring-web-security-205

See merge request !237
parents f6cbfd19 e84dc6a0
No related branches found
No related tags found
1 merge request!237disable-spring-web-security-205
Pipeline #80321 failed
...@@ -15,20 +15,20 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -15,20 +15,20 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http http
.csrf().disable() .csrf().disable();
.authorizeRequests() // .authorizeRequests()
.antMatchers("/", "/index.html", // .antMatchers("/", "/index.html",
"/liveness_check", // "/liveness_check",
"/readiness_check", // "/readiness_check",
"/index-worker", "/_dps/task-handlers", "/_dps/task-handlers/**", // "/index-worker", "/_dps/task-handlers", "/_dps/task-handlers/**",
"/reindex", // "/reindex",
"/v2/api-docs", // "/v2/api-docs",
"/swagger-resources/**", // "/swagger-resources/**",
"/configuration/security", // "/configuration/security",
"/swagger", // "/swagger",
"/info", // "/info",
"/swagger-ui.html", // "/swagger-ui.html",
"/webjars/**").permitAll() // "/webjars/**").permitAll()
.anyRequest().anonymous(); // .anyRequest().anonymous();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment