Skip to content

Commit 25111c5

Browse files
Tomasz Lelekmogronalol
authored andcommitted
BAEL-542 use defaults
1 parent 4bac6e0 commit 25111c5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎spring-security-cache-control/src/main/java/com/baeldung/cachecontrol/config/SpringSecurityConfig.java‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
1414

1515
@Override
1616
protected void configure(HttpSecurity http) throws Exception {
17-
http
18-
.authorizeRequests()
19-
.anyRequest().permitAll()
20-
.and().headers()
17+
http.headers()
2118
.defaultsDisabled()
2219
.cacheControl();
2320
}

0 commit comments

Comments
 (0)