internal: set path on cookie for proxy

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#2305
This commit is contained in:
Jens Langhammer
2022-05-11 10:08:38 +02:00
parent 25a4310bb1
commit 421b003218
2 changed files with 5 additions and 2 deletions

View File

@ -96,7 +96,7 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, cs *ak.CryptoStore
errorTemplates: templates.GetTemplates(),
ak: ak,
}
a.sessions = a.getStore(p)
a.sessions = a.getStore(p, externalHost)
mux.Use(web.NewLoggingHandler(muxLogger, func(l *log.Entry, r *http.Request) *log.Entry {
s, err := a.sessions.Get(r, constants.SeesionName)
if err != nil {