Skip to content

Commit 97a49e1

Browse files
committed
Merge branch '6.2.x' into 6.3.x
2 parents abaab2e + e51507e commit 97a49e1

File tree

1 file changed

+1
-1
lines changed
  • docs/modules/ROOT/pages/servlet/exploits

1 file changed

+1
-1
lines changed

docs/modules/ROOT/pages/servlet/exploits/csrf.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ You can also specify <<csrf-token-repository-custom,your own implementation>> to
130130

131131
By default, Spring Security stores the expected CSRF token in the `HttpSession` by using {security-api-url}org/springframework/security/web/csrf/HttpSessionCsrfTokenRepository.html[`HttpSessionCsrfTokenRepository`], so no additional code is necessary.
132132

133-
The `HttpSessionCsrfTokenRepository` reads the token from an HTTP request header named `X-CSRF-TOKEN` or the request parameter `_csrf` by default.
133+
The `HttpSessionCsrfTokenRepository` reads the token from a session (whether in-memory, cache, or database). If you need to access the session attribute directly, please first configure the session attribute name using `HttpSessionCsrfTokenRepository#setSessionAttributeName`.
134134

135135
You can specify the default configuration explicitly using the following configuration:
136136

0 commit comments

Comments
 (0)