簡體   English   中英

Phonegap代碼401中的FileTransfer

[英]FileTransfer in Phonegap code 401

嘿我正在使用Phonegap'FileTransfer。 我得到401代碼3錯誤(未經授權)httprequest。

我實施的FT方法:

    var ft = new FileTransfer();
    ft.download(startUrl + filename, dlPath, function(e){
        console.log("Successful download of "+e.fullPath);
        renderPicture(e.fullPath);
    }, onError);

請求/響應:

07-24 08:58:12.750: D/CordovaLog(3744): {"target":"file:///mnt/sdcard/dk.test.html5Generic/","source":"http://mobilitycms.test.dk:9090/content/picture/menu/showroom","http_status":401,"code":3}

如果你需要測試你需要刪除的路徑:9090我有,因為我在內部網絡上。

任何幫助將被理解為將此錯誤銷毀:-P

問題是我忘了將我的cordova xml下的url添加為白名單:

Android: project - res - xml - cordova.xml

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM