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: web/src/main/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServices.java
if (this.cookieDomain != null && !this.cookieDomain.isEmpty()) {
94
84
cookie.setDomain(this.cookieDomain);
95
85
}
@@ -145,17 +135,11 @@ public void setCookieName(String cookieName) {
145
135
146
136
/**
147
137
* Sets the HttpOnly attribute on the cookie containing the CSRF token.
148
-
* The cookie will only be marked as HttpOnly if both <code>cookieHttpOnly</code> is <code>true</code> and the underlying version of Servlet is 3.0 or greater.
149
-
* Defaults to <code>true</code> if the underlying version of Servlet is 3.0 or greater.
150
-
* NOTE: The {@link Cookie#setHttpOnly(boolean)} was introduced in Servlet 3.0.
138
+
* Defaults to <code>true</code>.
151
139
*
152
-
* @param cookieHttpOnly <code>true</code> sets the HttpOnly attribute, <code>false</code> does not set it (depending on Servlet version)
153
-
* @throws IllegalArgumentException if <code>cookieHttpOnly</code> is <code>true</code> and the underlying version of Servlet is less than 3.0
140
+
* @param cookieHttpOnly <code>true</code> sets the HttpOnly attribute, <code>false</code> does not set it
if (cookieHttpOnly && setHttpOnlyMethod == null) {
157
-
thrownewIllegalArgumentException("Cookie will not be marked as HttpOnly because you are using a version of Servlet less than 3.0. NOTE: The Cookie#setHttpOnly(boolean) was introduced in Servlet 3.0.");
Copy file name to clipboardExpand all lines: web/src/test/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServicesServlet3Tests.java
Copy file name to clipboardExpand all lines: web/src/test/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServicesTests.java
0 commit comments