use defaults
@@ -14,10 +14,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
- http
- .authorizeRequests()
- .anyRequest().permitAll()
- .and().headers()
+ http.headers()
.defaultsDisabled()
.cacheControl();
}
