From 28f3397723d8a777aff3eb7189c7662c18d27e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 29 Jan 2021 23:07:43 +0100 Subject: [PATCH] logout correct cookie path. --- internal/api/session.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/api/session.go b/internal/api/session.go index 05de79bb..72821431 100644 --- a/internal/api/session.go +++ b/internal/api/session.go @@ -57,7 +57,6 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) { http.SetCookie(w, &http.Cookie{ Name: "neko-id", Value: "", - Path: "/", Expires: time.Unix(0, 0), HttpOnly: false, }) @@ -65,7 +64,6 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) { http.SetCookie(w, &http.Cookie{ Name: "neko-secret", Value: "", - Path: "/", Expires: time.Unix(0, 0), HttpOnly: true, })