[
https://issues.apache.org/jira/browse/CB-9779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Armando Basile resolved CB-9779.
--------------------------------
Resolution: Fixed
> Always i receive Error Code 3 - http status 401
> -----------------------------------------------
>
> Key: CB-9779
> URL: https://issues.apache.org/jira/browse/CB-9779
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Environment: android 5
> cordova 5.3.3
> cordova-plugin-file-transfer 1.3.0 "File Transfer"
> Reporter: Armando Basile
> Priority: Critical
> Labels: newbie
>
> http://pastebin.com/KV0p0PWm
> i receive always error code 3 (connection error)
> but if i try to use browser on phone, i download file with success.
> if i try to use phonegap serve, it work fine and i have file downloaded
> http_status 401
> so looking plugin code the only place that generate 401 error in Android is
> when "Source URL is not in white list..."
> but i have right settings in my config.xml:
> {code}
> <access origin="*" subdomains="true" />
> <allow-navigation href="http://*/*" />
> <allow-navigation href="https://*/*" />
> <allow-intent href="http://*/*" />
> <allow-intent href="https://*/*" />
> {code}
> if i comment it
> https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/android/FileTransfer.java#L786-L791
> application work fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]