mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Set invalidation cookie to "secure" just to avoid LGTM warning
This commit is contained in:
@@ -154,6 +154,7 @@ public class JWTTokenRestAuthenticationServiceImpl implements RestAuthentication
|
|||||||
Cookie cookie = new Cookie(AUTHORIZATION_COOKIE, "");
|
Cookie cookie = new Cookie(AUTHORIZATION_COOKIE, "");
|
||||||
cookie.setHttpOnly(true);
|
cookie.setHttpOnly(true);
|
||||||
cookie.setMaxAge(0);
|
cookie.setMaxAge(0);
|
||||||
|
cookie.setSecure(true);
|
||||||
response.addCookie(cookie);
|
response.addCookie(cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user