Set invalidation cookie to "secure" just to avoid LGTM warning

This commit is contained in:
Tim Donohue
2020-07-27 11:12:18 -05:00
parent dcc651945d
commit cf7daef431

View File

@@ -154,6 +154,7 @@ public class JWTTokenRestAuthenticationServiceImpl implements RestAuthentication
Cookie cookie = new Cookie(AUTHORIZATION_COOKIE, "");
cookie.setHttpOnly(true);
cookie.setMaxAge(0);
cookie.setSecure(true);
response.addCookie(cookie);
}