cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armando Basile (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9779) Always i receive Error Code 3 - http status 401
Date Mon, 12 Oct 2015 13:16:05 GMT

    [ https://issues.apache.org/jira/browse/CB-9779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14953098#comment-14953098
] 

Armando Basile commented on CB-9779:
------------------------------------

simple i needed to add 
{code}
$ cordova plugin add cordova-plugin-whitelist
{code}

to my app.

> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message