From 646d174dd2f896a678b878844c446a3d7c47d2a7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 21 May 2022 16:26:12 +0200 Subject: [PATCH] internal: revert cookie path on proxy causing redirect loops Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/session.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/outpost/proxyv2/application/session.go b/internal/outpost/proxyv2/application/session.go index 94b8d641d..78c3fb75c 100644 --- a/internal/outpost/proxyv2/application/session.go +++ b/internal/outpost/proxyv2/application/session.go @@ -28,7 +28,6 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL) } else { rs.SetMaxAge(0) } - rs.Options.Path = externalHost.Path rs.Options.Domain = *p.CookieDomain a.log.Trace("using redis session backend") store = rs @@ -49,7 +48,6 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL) } else { cs.MaxAge(0) } - cs.Options.Path = externalHost.Path cs.Options.Domain = *p.CookieDomain a.log.WithField("dir", dir).Trace("using filesystem session backend") store = cs