From 7f27ba3902713e6e6051c81b404dc4b0f41321ca Mon Sep 17 00:00:00 2001 From: yhao3 Date: Thu, 18 Apr 2024 12:25:09 +0800 Subject: [PATCH] Update links to HttpOnly documentation at OWASP in ResponseCookie Closes gh-32663 --- .../main/java/org/springframework/http/ResponseCookie.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/ResponseCookie.java b/spring-web/src/main/java/org/springframework/http/ResponseCookie.java index cbe65d1b893..485550614fc 100644 --- a/spring-web/src/main/java/org/springframework/http/ResponseCookie.java +++ b/spring-web/src/main/java/org/springframework/http/ResponseCookie.java @@ -110,7 +110,7 @@ public final class ResponseCookie extends HttpCookie { /** * Return {@code true} if the cookie has the "HttpOnly" attribute. - * @see https://www.owasp.org/index.php/HTTPOnly + * @see https://owasp.org/www-community/HttpOnly */ public boolean isHttpOnly() { return this.httpOnly; @@ -268,7 +268,7 @@ public final class ResponseCookie extends HttpCookie { /** * Add the "HttpOnly" attribute to the cookie. - * @see https://www.owasp.org/index.php/HTTPOnly + * @see https://owasp.org/www-community/HttpOnly */ ResponseCookieBuilder httpOnly(boolean httpOnly);