Add cookie domain debug logs

To help debug login issues.
This commit is contained in:
Asher 2020-08-04 15:01:18 -05:00
parent 7d02f34f71
commit de568d446b
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 0 deletions

View File

@ -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
} }