cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-4026) config.xml whitelist not respected in android
Date Tue, 02 Jul 2013 23:14:19 GMT

     [ https://issues.apache.org/jira/browse/CB-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filip Maj resolved CB-4026.
---------------------------

    Resolution: Cannot Reproduce

I cannot reproduce this issue. Used your code exactly and tested on an actual Android device.

I am going to chalk this issue up to an issue with the emulator.

Be warned that the whitelist is VERY fickle/tricky. For example, setting the whitelist to
"w3schools.com" resulted in NO response coming back, but setting it to "http://www.w3schools.com/*"
worked.
                
> config.xml whitelist not respected in android
> ---------------------------------------------
>
>                 Key: CB-4026
>                 URL: https://issues.apache.org/jira/browse/CB-4026
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.9.0
>         Environment: $ cordova -v
> 2.9.0
> $ npm -v
> 1.3.1
> Centos 6
>            Reporter: Dan Moore
>            Assignee: Filip Maj
>         Attachments: index.js
>
>
> I can create a sample application and change the whitelist to restrict the host, but
the app in the emulator can still access other hosts.
> To replicate: 
> * cordova create Bar1; cd Bar1; cordova platforms add android; 
> * edit the access line in www/config.xml to be '<access origin="example.com" />'
> * update index.js to be the file attached.
> * build and deploy the app to the emulator
> Expected: 
> no network access will be allowed
> Reality:
> you see a console.log line (via adb logcat) with XML text in it
> I tested this in my android 2.3.3 emulator.  I googled for 'android emulator ignores
whitelist phonegap' but didn't see anything relevant.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message