This commit is contained in:
purplecabbage
2013-09-30 14:03:05 -07:00
parent 2be905fcab
commit 32e980dbde
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -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