Skip to content

Commit fa2126f

Browse files
committed
added link to spring boot csrf
1 parent e2d082c commit fa2126f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,16 @@ Axios should work with the following spring config out of the box with csrf:
315315
SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
316316
http
317317
.httpBasic(org.springframework.security.config.Customizer.withDefaults())
318-
.csrf(c ->
318+
.csrf(c ->
319319
c.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse())
320320
.csrfTokenRequestHandler(new CsrfTokenRequestAttributeHandler())
321321
);
322322
return http.build();
323323
}
324324
```
325325

326+
more informations: https://docs.spring.io/spring-security/reference/servlet/exploits/csrf.html
327+
326328
# Alternatives
327329

328330
- quartz

0 commit comments

Comments
 (0)