Set the cookie domain based on the HTTP domain.