You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -199,9 +199,14 @@ public SessionManagementConfigurer<H> sessionAuthenticationFailureHandler(
199
199
/**
200
200
* If set to true, allows HTTP sessions to be rewritten in the URLs when using
201
201
* {@link HttpServletResponse#encodeRedirectURL(String)} or
202
-
* {@link HttpServletResponse#encodeURL(String)}, otherwise disallows all URL
203
-
* rewriting, including resource chain functionality.
204
-
* This prevents leaking information to external domains.
202
+
* {@link HttpServletResponse#encodeURL(String)}, otherwise disallows HTTP sessions to
203
+
* be included in the URL. This prevents leaking information to external domains.
204
+
* <p>
205
+
* This is achieved by guarding {@link HttpServletResponse#encodeURL} and
206
+
* {@link HttpServletResponse#encodeRedirectURL} invocations. Any code that also
0 commit comments