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
@@ -131,7 +131,7 @@ func clientUniqueIDMiddleware(next http.Handler) http.Handler {
HttpOnly: true,
Secure: true,
SameSite: http.SameSiteStrictMode,
Path: IfZero(conf.Server.BaseURL, "/"),
Path: IfZero(conf.Server.BasePath, "/"),
}
http.SetCookie(w, c)
} else {