Fixes crossDomain test so that it assumes port to be 80 for http and 443 for https...