The cause of the problem is:
Domain's records are kept in configs with port numbers, like "mysite.ddev.site:880". But the method "getHost()" returns only the domain, without the port number. So we don't have a result in the method "loadByHostname()" from the "DomainNegotiator.php" class.
We should use the "getHttpHost()" method instead.