Skip to content

Commit

Permalink
set cookie domain
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbin committed May 8, 2020
1 parent 068b9ec commit f25bbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apigateway/handler/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func saveCookie(w http.ResponseWriter, name, val, domain string, expire time.Tim
cookie := &http.Cookie{Name: name, Value: valenc, Path: "/", Expires: expire, MaxAge: maxAge, HttpOnly: false}

if len(domain) > 0 {
cookie.Domain = options.Options.CookieDomain
cookie.Domain = domain
}

http.SetCookie(w, cookie)
Expand Down

0 comments on commit f25bbee

Please sign in to comment.