Skip to content

Commit e4ab2aa

Browse files
yhao3sbrannen
authored andcommitted
Update links to HttpOnly documentation at OWASP in ResponseCookie
See gh-32663 Closes gh-32667 (cherry picked from commit 7f27ba3)
1 parent 40bf550 commit e4ab2aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: spring-web/src/main/java/org/springframework/http/ResponseCookie.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -110,7 +110,7 @@ public boolean isSecure() {
110110

111111
/**
112112
* Return {@code true} if the cookie has the "HttpOnly" attribute.
113-
* @see <a href="https://www.owasp.org/index.php/HTTPOnly">https://www.owasp.org/index.php/HTTPOnly</a>
113+
* @see <a href="https://owasp.org/www-community/HttpOnly">https://owasp.org/www-community/HttpOnly</a>
114114
*/
115115
public boolean isHttpOnly() {
116116
return this.httpOnly;
@@ -268,7 +268,7 @@ public interface ResponseCookieBuilder {
268268

269269
/**
270270
* Add the "HttpOnly" attribute to the cookie.
271-
* @see <a href="https://www.owasp.org/index.php/HTTPOnly">https://www.owasp.org/index.php/HTTPOnly</a>
271+
* @see <a href="https://owasp.org/www-community/HttpOnly">https://owasp.org/www-community/HttpOnly</a>
272272
*/
273273
ResponseCookieBuilder httpOnly(boolean httpOnly);
274274

0 commit comments

Comments
 (0)