Revert "outpost/proxy: set samesite none"
This reverts commit f7afb60c1f
.
This commit is contained in:
parent
0a33d38adf
commit
8ca29f6d49
|
@ -2,7 +2,6 @@ package application
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
|
@ -19,12 +18,10 @@ func GetStore(p api.ProxyOutpostConfig) sessions.Store {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
rs.Options.Domain = *p.CookieDomain
|
rs.Options.Domain = *p.CookieDomain
|
||||||
rs.Options.SameSite = http.SameSiteNoneMode
|
|
||||||
store = rs
|
store = rs
|
||||||
} else {
|
} else {
|
||||||
cs := sessions.NewCookieStore([]byte(*p.CookieSecret))
|
cs := sessions.NewCookieStore([]byte(*p.CookieSecret))
|
||||||
cs.Options.Domain = *p.CookieDomain
|
cs.Options.Domain = *p.CookieDomain
|
||||||
cs.Options.SameSite = http.SameSiteNoneMode
|
|
||||||
store = cs
|
store = cs
|
||||||
}
|
}
|
||||||
return store
|
return store
|
||||||
|
|
Reference in New Issue