Skip to content

Commit eb2d7ec

Browse files
committed
refactor: use nested builders for csrf() configuration
Part of #1149
1 parent f5b4084 commit eb2d7ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ protected void configure(HttpSecurity http) throws Exception {
154154
// not yet authenticated
155155
.authenticationEntryPoint(new Http403ForbiddenEntryPoint())
156156
)
157-
.csrf()
157+
.csrf(csrf -> csrf
158158
.ignoringAntMatchers(pathsToIgnore)
159-
.and()
159+
)
160160
.rememberMe()
161161
// FIXME: GH #27
162162
.disable()

0 commit comments

Comments
 (0)