Merge branch '6.1.x'

Closes gh-13748
This commit is contained in:
Josh Cummings
2023-08-28 17:04:25 -06:00
2 changed files with 14 additions and 1 deletions

View File

@@ -178,7 +178,7 @@ public final class CookieCsrfTokenRepository implements CsrfTokenRepository {
*/
public static CookieCsrfTokenRepository withHttpOnlyFalse() {
CookieCsrfTokenRepository result = new CookieCsrfTokenRepository();
result.setCookieCustomizer((cookie) -> cookie.httpOnly(false));
result.cookieHttpOnly = false;
return result;
}