diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java index 84b78c1bb9e..0d0012bba92 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java @@ -185,8 +185,9 @@ public SessionManagementConfigurer sessionAuthenticationFailureHandler( /** * If set to true, allows HTTP sessions to be rewritten in the URLs when using * {@link HttpServletResponse#encodeRedirectURL(String)} or - * {@link HttpServletResponse#encodeURL(String)}, otherwise disallows HTTP sessions to - * be included in the URL. This prevents leaking information to external domains. + * {@link HttpServletResponse#encodeURL(String)}, otherwise disallows all URL + * rewriting, including resource chain functionality. + * This prevents leaking information to external domains. * * @param enableSessionUrlRewriting true if should allow the JSESSIONID to be * rewritten into the URLs, else false (default)