diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 7a5ab3445..35db61699 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -316,7 +316,7 @@ module( "ajax", { return [ request( - loc.protocol + "//" + loc.host + ":" + samePort, + loc.protocol + "//" + loc.hostname + ":" + samePort, "Test matching ports are not detected as cross-domain", false ),