diff options
-rw-r--r-- | modules/caddyhttp/reverseproxy/selectionpolicies.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/selectionpolicies.go b/modules/caddyhttp/reverseproxy/selectionpolicies.go index dacfd11..357ee33 100644 --- a/modules/caddyhttp/reverseproxy/selectionpolicies.go +++ b/modules/caddyhttp/reverseproxy/selectionpolicies.go @@ -445,7 +445,7 @@ func selectNewHostWithCookieHashSelection(pool []*Upstream, w http.ResponseWrite sha, err := hashCookie(cookieSecret, randomHost.Dial) if err == nil { // write the cookie. - http.SetCookie(w, &http.Cookie{Name: cookieName, Value: sha, Secure: false}) + http.SetCookie(w, &http.Cookie{Name: cookieName, Value: sha, Path: "/", Secure: false}) } } return randomHost |