Set SameSite=None on session cookie

pull/443/head
Matt Baer 4 years ago
parent 3e282e4c85
commit 424bd55816
  1. 1
      session.go

@ -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…
Cancel
Save