This commit is contained in:
jdl
2025-01-04 13:36:55 +01:00
parent 2549e1ae08
commit 36172bf310
4 changed files with 13 additions and 12 deletions

View File

@@ -17,8 +17,9 @@ func (a *App) setCookie(w http.ResponseWriter, name, value string) {
Name: name,
Value: value,
Path: "/",
Secure: a.secure,
Secure: !a.insecure,
SameSite: http.SameSiteStrictMode,
HttpOnly: true,
MaxAge: 86400 * 365 * 10,
})
}