mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-03 03:12:50 +02:00
core/config: remove cookie secure option (#4907)
This commit is contained in:
parent
d5b4910951
commit
f684910ab3
9 changed files with 431 additions and 452 deletions
|
@ -25,7 +25,6 @@ func testOptions(t *testing.T) *config.Options {
|
|||
testPolicy := config.Policy{From: "https://corp.example.example", To: to}
|
||||
opts.Policies = []config.Policy{testPolicy}
|
||||
opts.InsecureServer = true
|
||||
opts.CookieSecure = false
|
||||
opts.Services = config.ServiceAll
|
||||
opts.SharedKey = "80ldlrU2d7w+wVpKNfevk6fmb8otEx6CqOfshj2LwhQ="
|
||||
opts.CookieSecret = "OromP1gurwGWjQPYb1nNgSxtbVB5NnLzX6z5WOKr0Yw="
|
||||
|
|
|
@ -90,7 +90,7 @@ func newProxyStateFromConfig(cfg *config.Config) (*proxyState, error) {
|
|||
return cookie.Options{
|
||||
Name: cfg.Options.CookieName,
|
||||
Domain: cfg.Options.CookieDomain,
|
||||
Secure: cfg.Options.CookieSecure,
|
||||
Secure: true,
|
||||
HTTPOnly: cfg.Options.CookieHTTPOnly,
|
||||
Expire: cfg.Options.CookieExpire,
|
||||
SameSite: cfg.Options.GetCookieSameSite(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue