fix: define new cookie in EchoAuthCookie but use the existing cookies values
This commit is contained in:
parent
b2b6102216
commit
4391e9fc31
|
@ -143,7 +143,15 @@ func EchoAuthCookie(jc jape.Context, apiName string) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
http.SetCookie(jc.ResponseWriter, cookies[0])
|
http.SetCookie(jc.ResponseWriter, &http.Cookie{
|
||||||
|
Name: cookies[0].Name,
|
||||||
|
Value: cookies[0].Value,
|
||||||
|
Expires: cookies[0].Expires,
|
||||||
|
Secure: true,
|
||||||
|
HttpOnly: true,
|
||||||
|
Path: "/",
|
||||||
|
Domain: cookies[0].Domain,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue