Changed the way to handle comparison of host and origin.