Skip to content

Commit

Permalink
Updated default same site behaviour to not write SameSite attribute t…
Browse files Browse the repository at this point in the history
…o cookie at all. See golang/go#36990
  • Loading branch information
jbwtan committed Mar 16, 2020
1 parent 7124218 commit 802f4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cookie/cookie.go
Expand Up @@ -32,7 +32,7 @@ func setCookie(w http.ResponseWriter, r *http.Request, val string, maxAge int) {
log.Debugf("setting the cookie domain to %v", domain)
}

sameSite := http.SameSiteDefaultMode
sameSite := http.SameSite(0)
if cfg.Cfg.Cookie.SameSite != "" {
switch strings.ToLower(cfg.Cfg.Cookie.SameSite) {
case "lax":
Expand Down

0 comments on commit 802f4ea

Please sign in to comment.