Skip to content

Commit 92b3a7b

Browse files
committed
Clarify in .csrf() enables CSRF protection
Closes gh-9489
1 parent cf2bb62 commit 92b3a7b

File tree

1 file changed

+2
-2
lines changed
  • config/src/main/java/org/springframework/security/config/annotation/web/builders

1 file changed

+2
-2
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ public HttpSecurity servletApi(Customizer<ServletApiConfigurer<HttpSecurity>> se
15301530
}
15311531

15321532
/**
1533-
* Adds CSRF support. This is activated by default when using
1533+
* Enables CSRF protection. This is activated by default when using
15341534
* {@link WebSecurityConfigurerAdapter}'s default constructor. You can disable it
15351535
* using:
15361536
*
@@ -1556,7 +1556,7 @@ public CsrfConfigurer<HttpSecurity> csrf() throws Exception {
15561556
}
15571557

15581558
/**
1559-
* Adds CSRF support. This is activated by default when using
1559+
* Enables CSRF protection. This is activated by default when using
15601560
* {@link WebSecurityConfigurerAdapter}'s default constructor. You can disable it
15611561
* using:
15621562
*

0 commit comments

Comments
 (0)