Skip to content

Commit a70fed4

Browse files
committed
update comments
1 parent c11cfdb commit a70fed4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

auth/session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func (auth *Authenticator) MakeSessionCookie(session *LoginSession, secureCookie
145145
Expires: session.Expiration,
146146
Secure: secureCookie,
147147
HttpOnly: httpOnly,
148+
// as of go 1.25, http.SameSiteDefaultMode will omit SameSite attribute from the cookie
148149
SameSite: sameSite,
149150
}
150151
}

docs/api/components/schemas.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ Database:
17001700
type: boolean
17011701
same_site_cookie:
17021702
description: |-
1703-
Override the session cookie SameSite behavior. By default, if CORS is enabled, a session cookie will have SameSite:None. `Default` will omit any SameSite option from the cookie.
1703+
Override the session cookie SameSite behavior. By default, a session cookie will have SameSite:None if CORS is enabled, and will have no SameSite attribute if CORS is not enabled. Setting this property to`Default` will omit the SameSite attribute from the cookie.
17041704
type: string
17051705
enum:
17061706
- "Default"

0 commit comments

Comments
 (0)