mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat: add secure flags to cookie (#17)
This commit is contained in:
parent
3aad067c5e
commit
5f69ae9380
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ func (h authHandler) login(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
store.Options.Secure = true
|
||||
store.Options.HttpOnly = true
|
||||
store.Options.SameSite = http.SameSiteStrictMode
|
||||
session, _ := store.Get(r, "user_session")
|
||||
|
||||
_, err := h.authService.Login(data.Username, data.Password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue