API: Add SameSite Strict attribute to cookie

This commit is contained in:
nemunaire 2020-09-10 09:45:20 +02:00
parent 9b498b23a7
commit e2419d545f

View File

@ -120,6 +120,7 @@ func completeAuth(opts *config.Options, email string, service string) Response {
Expires: time.Now().Add(30 * 24 * time.Hour),
Secure: opts.DevProxy == "",
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
}},
}
}