We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9acb6d commit edff9aeCopy full SHA for edff9ae
web/src/main/java/org/springframework/security/web/server/csrf/CookieServerCsrfTokenRepository.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2022 the original author or authors.
+ * Copyright 2002-2025 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -84,7 +84,7 @@ public void setCookieCustomizer(Consumer<ResponseCookie.ResponseCookieBuilder> c
84
*/
85
public static CookieServerCsrfTokenRepository withHttpOnlyFalse() {
86
CookieServerCsrfTokenRepository result = new CookieServerCsrfTokenRepository();
87
- result.setCookieCustomizer((cookie) -> cookie.httpOnly(false));
+ result.cookieHttpOnly = false;
88
return result;
89
}
90
0 commit comments