Skip to content

Commit ef35c4a

Browse files
committed
Merge branch '6.3.x'
2 parents 78f2c15 + 97a49e1 commit ef35c4a

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 javadoc:org.springframework.security.web.csrf.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)