Allow BaseURL to contain full server url, including scheme and host. Fix #2183
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user