Fix: cookies
This commit is contained in:
@ -144,10 +144,10 @@ func makeCookie(username string, remote string) (*http.Cookie, error) {
|
|||||||
cookie := &http.Cookie{
|
cookie := &http.Cookie{
|
||||||
Name: cookieName,
|
Name: cookieName,
|
||||||
Value: cookieValue,
|
Value: cookieValue,
|
||||||
Secure: true,
|
// Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
SameSite: http.SameSiteNoneMode,
|
SameSite: http.SameSiteNoneMode,
|
||||||
Domain: cfg.ServerConfig.Host,
|
// Domain: cfg.ServerConfig.Host,
|
||||||
}
|
}
|
||||||
log.Info("check remote addr for cookie set",
|
log.Info("check remote addr for cookie set",
|
||||||
"remote", remote, "session", session)
|
"remote", remote, "session", session)
|
||||||
|
Reference in New Issue
Block a user