Skip to content

Commit 6e3ffd9

Browse files
committed
Change recommended explanation.
1 parent 74ae8b7 commit 6e3ffd9

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 a session(e.g. in-memory, cache or database). Default session attribute name is `HttpSessionCsrfTokenRepository.class.getName().concat(".CSRF_TOKEN")`. The session attribute name can be changed using HttpSessionCsrfTokenRepository#setSessionAttributeName method.
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)