Browse Source

Update links to HttpOnly documentation at OWASP in ResponseCookie

See gh-32663
Closes gh-32667

(cherry picked from commit 7f27ba3902)
pull/33048/head
yhao3 2 years ago committed by Sam Brannen
parent
commit
e4ab2aa775
  1. 6
      spring-web/src/main/java/org/springframework/http/ResponseCookie.java

6
spring-web/src/main/java/org/springframework/http/ResponseCookie.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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. * 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() { public boolean isHttpOnly() {
return this.httpOnly; return this.httpOnly;
@ -268,7 +268,7 @@ public final class ResponseCookie extends HttpCookie {
/** /**
* Add the "HttpOnly" attribute to the cookie. * 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); ResponseCookieBuilder httpOnly(boolean httpOnly);

Loading…
Cancel
Save