mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
config: add cookie_same_site option (#4148)
This commit is contained in:
parent
facf9ab093
commit
be0104b842
22 changed files with 562 additions and 423 deletions
|
@ -42,6 +42,7 @@ type Options struct {
|
|||
Expire time.Duration
|
||||
HTTPOnly bool
|
||||
Secure bool
|
||||
SameSite http.SameSite
|
||||
}
|
||||
|
||||
// A GetOptionsFunc is a getter for cookie options.
|
||||
|
@ -92,6 +93,7 @@ func (cs *Store) makeCookie(value string) *http.Cookie {
|
|||
HttpOnly: opts.HTTPOnly,
|
||||
Secure: opts.Secure,
|
||||
Expires: timeNow().Add(opts.Expire),
|
||||
SameSite: opts.SameSite,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue