mirror of
https://github.com/writeas/writefreely
synced 2025-01-05 20:47:30 +01:00
Set SameSite=None on session cookie
This commit is contained in:
parent
3e282e4c85
commit
424bd55816
@ -40,6 +40,7 @@ func (app *App) InitSession() {
|
||||
MaxAge: sessionLength,
|
||||
HttpOnly: true,
|
||||
Secure: strings.HasPrefix(app.cfg.App.Host, "https://"),
|
||||
SameSite: http.SameSiteNoneMode,
|
||||
}
|
||||
app.sessionStore = store
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user