Update links to HttpOnly documentation at OWASP in ResponseCookie

Closes gh-32663
This commit is contained in:
yhao3 2024-04-18 12:25:09 +08:00 committed by Sam Brannen
parent b3a45670f9
commit 7f27ba3902
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ public final class ResponseCookie extends HttpCookie {
/**
* Return {@code true} if the cookie has the "HttpOnly" attribute.
* @see <a href="https://www.owasp.org/index.php/HTTPOnly">https://www.owasp.org/index.php/HTTPOnly</a>
* @see <a href="https://owasp.org/www-community/HttpOnly">https://owasp.org/www-community/HttpOnly</a>
*/
public boolean isHttpOnly() {
return this.httpOnly;
@ -268,7 +268,7 @@ public final class ResponseCookie extends HttpCookie {
/**
* Add the "HttpOnly" attribute to the cookie.
* @see <a href="https://www.owasp.org/index.php/HTTPOnly">https://www.owasp.org/index.php/HTTPOnly</a>
* @see <a href="https://owasp.org/www-community/HttpOnly">https://owasp.org/www-community/HttpOnly</a>
*/
ResponseCookieBuilder httpOnly(boolean httpOnly);