diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 468d384598..b41654db91 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -321,7 +321,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 ),