1
0
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:
Matt Baer 2021-03-24 11:35:37 -04:00
parent 3e282e4c85
commit 424bd55816

View File

@ -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
}