Skip to content

Commit

Permalink
Assign sensible default value to session cookie 'SameSite' field #25
Browse files Browse the repository at this point in the history
  • Loading branch information
ipoerner committed Dec 13, 2022
1 parent c4c1b47 commit ee5001b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session.go
Expand Up @@ -88,6 +88,7 @@ func (s Session) Cookie() *http.Cookie {
Domain: CookieDomain,
Path: "/",
HttpOnly: CookieHttpOnly,
SameSite: http.SameSiteStrictMode,
Secure: CookieSecure,
Expires: ts.UTC(),
}
Expand Down

0 comments on commit ee5001b

Please sign in to comment.