This commit is contained in:
cangui 2025-05-11 10:52:02 +02:00
parent 22170c192a
commit 75418e2b8a

View File

@ -51,8 +51,8 @@ func AuthWithTokenHandler() http.HandlerFunc {
Value: token, Value: token,
Path: "/", Path: "/",
HttpOnly: true, HttpOnly: true,
Secure: false, // true en prod Secure: true, // Obligatoire avec SameSite=None
SameSite: http.SameSiteLaxMode, SameSite: http.SameSiteNoneMode,
}) })
http.Redirect(w, r, "/dashboard", http.StatusSeeOther) http.Redirect(w, r, "/dashboard", http.StatusSeeOther)