Removing basic auth attributes when returning host url.