diff --git a/www/FileTransfer.js b/www/FileTransfer.js index 6eb9d74..57c9821 100644 --- a/www/FileTransfer.js +++ b/www/FileTransfer.js @@ -42,7 +42,7 @@ function getBasicAuthHeader(urlString) { var credentials = null; var protocol = url.protocol + "//"; - var origin = protocol + url.host; + var origin = protocol + url.host.replace(":" + url.port, ""); // Windows 8 (IE10) append :80 or :443 to url.host // check whether there are the username:password credentials in the url if (url.href.indexOf(origin) !== 0) { // credentials found