BAEL-89 remove csrf disable
This commit is contained in:
parent
8daa90f3de
commit
9938a1a0c7
@ -16,7 +16,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
.sessionManagement()
|
.sessionManagement()
|
||||||
.sessionCreationPolicy(SessionCreationPolicy.NEVER)
|
.sessionCreationPolicy(SessionCreationPolicy.NEVER)
|
||||||
.and()
|
.and()
|
||||||
.authorizeRequests().anyRequest().hasRole("ADMIN").and()
|
.authorizeRequests().anyRequest().hasRole("ADMIN").and();
|
||||||
.httpBasic().disable();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
http
|
http
|
||||||
.httpBasic().and()
|
.httpBasic().and()
|
||||||
// .csrf().disable()
|
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
.antMatchers("/").permitAll()
|
.antMatchers("/").permitAll()
|
||||||
.antMatchers("/tomcat").hasRole("USER")
|
.antMatchers("/tomcat").hasRole("USER")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user