Skip to content

Commit

Permalink
-> cookieSameSite, mobile not working right now
Browse files Browse the repository at this point in the history
  • Loading branch information
Arakasi21 committed Jun 11, 2024
1 parent 0db8d55 commit 72f5764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/handler/user/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ func (h *Handler) configureCookie(cookie *http.Cookie) {
// Set Secure to true if environment is "prod" or "dev", false otherwise
cookie.Secure = h.cfg.Env == "prod" || h.cfg.Env == "dev"

if h.cfg.Env == "prod" || h.cfg.Env == "dev" {
// || h.cfg.Env == "dev" , add after
if h.cfg.Env == "prod" {
cookie.SameSite = http.SameSiteStrictMode
} else {
cookie.SameSite = http.SameSiteNoneMode
Expand Down

0 comments on commit 72f5764

Please sign in to comment.