From f7afb60c1ff1fcd68cb5a46bc8642035b0175827 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 8 Sep 2021 22:06:44 +0200 Subject: [PATCH] outpost/proxy: set samesite none Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/session.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/outpost/proxyv2/application/session.go b/internal/outpost/proxyv2/application/session.go index 2f0695f79..f3d63dc75 100644 --- a/internal/outpost/proxyv2/application/session.go +++ b/internal/outpost/proxyv2/application/session.go @@ -2,6 +2,7 @@ package application import ( "fmt" + "net/http" "strconv" "github.com/gorilla/sessions" @@ -18,10 +19,12 @@ func GetStore(p api.ProxyOutpostConfig) sessions.Store { panic(err) } rs.Options.Domain = *p.CookieDomain + rs.Options.SameSite = http.SameSiteNoneMode store = rs } else { cs := sessions.NewCookieStore([]byte(*p.CookieSecret)) cs.Options.Domain = *p.CookieDomain + cs.Options.SameSite = http.SameSiteNoneMode store = cs } return store