mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
Merge branch 'fix-win8' of https://github.com/Touchit/cordova-plugin-file-transfer into dev
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user