Skip to content

Commit

Permalink
fix: use SameSite=Lax for session cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix authored Jan 27, 2024
1 parent 89b46d9 commit 7703f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func AuthenticatedMiddleware(conv *service.SessionJwtConverter) echo.MiddlewareF
Expires: exp,
Secure: cookie.Secure || isSecure(c),
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
SameSite: http.SameSiteLaxMode,
}
c.SetCookie(cookie)
}
Expand Down

0 comments on commit 7703f5a

Please sign in to comment.