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
1 changed files with 1 additions and 0 deletions

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
}