http cookie: add max-age and samesite

update deps too
This commit is contained in:
Nicola Murino
2021-05-16 09:13:00 +02:00
parent 15d6cd144a
commit 019b0f2fd5
6 changed files with 56 additions and 73 deletions

View File

@@ -273,7 +273,7 @@ func handleClientWebLogin(w http.ResponseWriter, r *http.Request) {
func handleWebClientLogout(w http.ResponseWriter, r *http.Request) {
c := jwtTokenClaims{}
c.removeCookie(w, r)
c.removeCookie(w, r, webBaseClientPath)
http.Redirect(w, r, webClientLoginPath, http.StatusFound)
}