mirror of
https://github.com/cdr/code-server.git
synced 2025-12-08 09:23:00 +01:00
Add cookie domain debug logs
To help debug login issues.
This commit is contained in:
parent
7d02f34f71
commit
de568d446b
1 changed files with 2 additions and 0 deletions
|
|
@ -868,6 +868,7 @@ export class HttpServer {
|
||||||
// isn't setting the host header to match the access domain.
|
// isn't setting the host header to match the access domain.
|
||||||
host === "localhost"
|
host === "localhost"
|
||||||
) {
|
) {
|
||||||
|
logger.debug("no valid cookie doman", field("host", host))
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -877,6 +878,7 @@ export class HttpServer {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
logger.debug("got cookie doman", field("host", host))
|
||||||
return host ? `Domain=${host}` : undefined
|
return host ? `Domain=${host}` : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue