Allow BaseURL to contain full server url, including scheme and host. Fix #2183

This commit is contained in:
Deluan
2023-02-15 21:13:38 -05:00
parent aac6e2cb07
commit 10108c63c9
8 changed files with 102 additions and 17 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ func getPlayer(players core.Players) func(next http.Handler) http.Handler {
MaxAge: consts.CookieExpiry,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
Path: IfZero(conf.Server.BaseURL, "/"),
Path: IfZero(conf.Server.BasePath, "/"),
}
http.SetCookie(w, cookie)
}