handlers: set cookie with SameSiteStrictMode
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
33c9b8a30e
commit
6ba09987a9
@ -371,8 +371,7 @@ func SigninPost(client *ent.Client) echo.HandlerFunc {
|
|||||||
cookieSession := &http.Cookie{
|
cookieSession := &http.Cookie{
|
||||||
Name: "session",
|
Name: "session",
|
||||||
Value: username,
|
Value: username,
|
||||||
// SameSite: http.SameSiteStrictMode,
|
SameSite: http.SameSiteStrictMode,
|
||||||
SameSite: http.SameSiteLaxMode,
|
|
||||||
MaxAge: 3600,
|
MaxAge: 3600,
|
||||||
Secure: secure,
|
Secure: secure,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
@ -483,8 +482,7 @@ func SignupPost(client *ent.Client) echo.HandlerFunc {
|
|||||||
cookieSession := &http.Cookie{
|
cookieSession := &http.Cookie{
|
||||||
Name: "session",
|
Name: "session",
|
||||||
Value: username,
|
Value: username,
|
||||||
// SameSite: http.SameSiteStrictMode,
|
SameSite: http.SameSiteStrictMode,
|
||||||
SameSite: http.SameSiteLaxMode,
|
|
||||||
MaxAge: 3600,
|
MaxAge: 3600,
|
||||||
Secure: secure,
|
Secure: secure,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
@ -594,8 +592,7 @@ func Logout() echo.HandlerFunc {
|
|||||||
cookieSession := &http.Cookie{
|
cookieSession := &http.Cookie{
|
||||||
Name: "session",
|
Name: "session",
|
||||||
Value: "",
|
Value: "",
|
||||||
// SameSite: http.SameSiteStrictMode,
|
SameSite: http.SameSiteStrictMode,
|
||||||
SameSite: http.SameSiteLaxMode,
|
|
||||||
MaxAge: -1,
|
MaxAge: -1,
|
||||||
Secure: secure,
|
Secure: secure,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user