fix: set path for cookies

This commit is contained in:
Trong Huu Nguyen
2021-08-24 08:49:57 +02:00
parent 43cb01ad00
commit cf8b4d56cc

View File

@@ -73,6 +73,7 @@ func (h *Handler) setEncryptedCookie(w http.ResponseWriter, key string, plaintex
Secure: h.SecureCookies,
HttpOnly: true,
SameSite: http.SameSiteLaxMode,
Path: "/",
})
return nil
@@ -102,5 +103,6 @@ func (h *Handler) deleteCookie(w http.ResponseWriter, key string) {
Name: key,
Secure: h.SecureCookies,
SameSite: http.SameSiteLaxMode,
Path: "/",
})
}