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

@@ -1032,7 +1032,7 @@ func handleWebAdminChangePwdPost(w http.ResponseWriter, r *http.Request) {
func handleWebLogout(w http.ResponseWriter, r *http.Request) {
c := jwtTokenClaims{}
c.removeCookie(w, r)
c.removeCookie(w, r, webBaseAdminPath)
http.Redirect(w, r, webLoginPath, http.StatusFound)
}