Skip to content

Commit 6639f45

Browse files
committed
no need to set to secure false
1 parent a2d7c34 commit 6639f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ase/angelos_kb_backend/controller/UserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public ResponseEntity<Void> logout() {
158158
// Create a cookie with the same name and attributes but zero max-age to remove it
159159
HttpCookie invalidCookie = ResponseCookie.from("refreshToken", "")
160160
.httpOnly(true)
161-
.secure(false)
161+
.secure(true)
162162
.sameSite("Strict")
163163
.path("/")
164164
.maxAge(0) // Invalidate the cookie immediately

0 commit comments

Comments
 (0)