Add Path to Token Cookie

From PR Review https://github.com/safing/portbase/pull/55
This commit is contained in:
Daniel 2020-07-10 11:46:59 +02:00
parent fda2943c0a
commit f4fcd0c67c

View file

@ -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()),