Skip to content

Commit ceeb552

Browse files
yhao3sbrannen
authored andcommitted
Update links to HttpOnly documentation at OWASP in ResponseCookie
See spring-projectsgh-32663 Closes spring-projectsgh-32668 (cherry picked from commit 7f27ba3)
1 parent cbc2ab6 commit ceeb552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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-2022 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;
@@ -326,7 +326,7 @@ public interface ResponseCookieBuilder {
326326

327327
/**
328328
* Add the "HttpOnly" attribute to the cookie.
329-
* @see <a href="https://www.owasp.org/index.php/HTTPOnly">https://www.owasp.org/index.php/HTTPOnly</a>
329+
* @see <a href="https://owasp.org/www-community/HttpOnly">https://owasp.org/www-community/HttpOnly</a>
330330
*/
331331
ResponseCookieBuilder httpOnly(boolean httpOnly);
332332

0 commit comments

Comments
 (0)