Skip to content

Commit

Permalink
Set SameSite=None on login cookie
Browse files Browse the repository at this point in the history
Attempt to share cookie between Hitchhikers and Storm
  • Loading branch information
davidwen authored Nov 9, 2022
1 parent dec0042 commit b41d78a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func (a *API) setCookieToken(config *conf.Configuration, tokenString string, ses
HttpOnly: true,
Path: "/",
Domain: ".yext.com",
SameSite: http.SameSiteNoneMode,
}
if !session {
cookie.Expires = time.Now().Add(exp)
Expand Down

0 comments on commit b41d78a

Please sign in to comment.