Skip to content

Commit 0616306

Browse files
committed
refactor: use nested builders for headers() configuration
Part of #1149
1 parent 6a825a6 commit 0616306

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,11 @@ protected void configure(HttpSecurity http) throws Exception {
161161
// FIXME: GH #27
162162
.disable()
163163
)
164-
.headers()
164+
.headers(headers -> headers
165165
.defaultsDisabled() // FIXME
166166
// @todo #1161 Add Feature-Policy header
167-
.addHeaderWriter(cspWriter);
167+
.addHeaderWriter(cspWriter)
168+
);
168169
}
169170

170171
// Used in AccountConfig.Services.userService()

0 commit comments

Comments
 (0)