Enable allowed_hosts checking functionality
Correct an error log call in the client