Set explicit SameSite=Lax on session cookie (#2926)

This commit is contained in:
DingDongSoLong4 2022-09-19 06:56:05 +02:00 committed by GitHub
parent 1207629a76
commit 5e97ecd260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ func NewStore(c SessionConfig) *Store {
}
ret.sessionStore.MaxAge(c.GetMaxSessionAge())
ret.sessionStore.Options.SameSite = http.SameSiteLaxMode
return ret
}