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,
Path: "/",
HttpOnly: true,
Secure: false, // true en prod
SameSite: http.SameSiteLaxMode,
Secure: true, // Obligatoire avec SameSite=None
SameSite: http.SameSiteNoneMode,
})
http.Redirect(w, r, "/dashboard", http.StatusSeeOther)