mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Add Path to Token Cookie
From PR Review https://github.com/safing/portbase/pull/55
This commit is contained in:
parent
fda2943c0a
commit
f4fcd0c67c
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ func authMiddleware(next http.Handler) http.Handler {
|
|||
http.SetCookie(w, &http.Cookie{
|
||||
Name: cookieName,
|
||||
Value: tokenString,
|
||||
Path: "/",
|
||||
HttpOnly: true,
|
||||
SameSite: http.SameSiteStrictMode,
|
||||
MaxAge: int(cookieTTL.Seconds()),
|
||||
|
|
Loading…
Add table
Reference in a new issue