From 8d956122878de6760e92860215a7f8bf61949cea Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:02:35 +0100 Subject: [PATCH] providers/proxy: Fix duplicate cookies when using file system store. (cherry-pick #7541) (#7544) providers/proxy: Fix duplicate cookies when using file system store. (#7541) Fix duplicate cookies when using file system store. Co-authored-by: thijs_a --- internal/outpost/proxyv2/application/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/outpost/proxyv2/application/session.go b/internal/outpost/proxyv2/application/session.go index 73755cf54..5ffa77b04 100644 --- a/internal/outpost/proxyv2/application/session.go +++ b/internal/outpost/proxyv2/application/session.go @@ -71,7 +71,7 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL) cs.Options.Domain = *p.CookieDomain cs.Options.SameSite = http.SameSiteLaxMode cs.Options.MaxAge = maxAge - cs.Options.Path = externalHost.Path + cs.Options.Path = "/" a.log.WithField("dir", dir).Trace("using filesystem session backend") return cs }