From ceeb55291aaa78c7b2654e026524fe3931e57c72 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 See gh-32663 Closes gh-32668 (cherry picked from commit 7f27ba3902713e6e6051c81b404dc4b0f41321ca) --- .../main/java/org/springframework/http/ResponseCookie.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 386fabd5db6..8c6120d37c0 100644 --- a/spring-web/src/main/java/org/springframework/http/ResponseCookie.java +++ b/spring-web/src/main/java/org/springframework/http/ResponseCookie.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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; @@ -326,7 +326,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);