mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-21 15:52:54 +00:00
fix: set path for cookies
This commit is contained in:
@@ -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: "/",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user