Skip to content

Commit c1b0e59

Browse files
OrangeDogjzheaux
authored andcommitted
Clarify behaviour of enableSessionUrlRewriting
See #3087
1 parent 3935f4b commit c1b0e59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ public SessionManagementConfigurer<H> sessionAuthenticationFailureHandler(
199199
/**
200200
* If set to true, allows HTTP sessions to be rewritten in the URLs when using
201201
* {@link HttpServletResponse#encodeRedirectURL(String)} or
202-
* {@link HttpServletResponse#encodeURL(String)}, otherwise disallows HTTP sessions to
203-
* be included in the URL. This prevents leaking information to external domains.
202+
* {@link HttpServletResponse#encodeURL(String)}, otherwise disallows all URL
203+
* rewriting, including resource chain functionality.
204+
* This prevents leaking information to external domains.
204205
* @param enableSessionUrlRewriting true if should allow the JSESSIONID to be
205206
* rewritten into the URLs, else false (default)
206207
* @return the {@link SessionManagementConfigurer} for further customization

0 commit comments

Comments
 (0)