Does phonegap/callback/cordova have a whitelist on all platforms? Is it implemented the same way on each?
Does phonegap/callback/cordova have a whitelist on all platforms? Is it implemented the same way
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The whitelist is present on both iOS and Android, but not other platforms yet.
Under iOS, it goes under the name of “External Hosts,” which is explained here: http://wiki.phonegap.com/w/page/41631150/PhoneGap%20for%20iOS%20FAQ
For example:
For Android, the feature is currently undocumented and somewhat buggy, although undergoing fixes. This thread holds some good troubleshooting details: https://groups.google.com/forum/#!topic/phonegap/9NZ4J4l1I-s
In a nutshell, it is the ‘access’ attribute in xml/phonegap.xml. It uses perl-style regex
Soon, this may be change to the following syntax:
Whitelist on BlackBerry is provided as part of the WebWorks framework
and is configured via config.xml:
https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/access_element_834677_11.html
The sample project allows access to all URL via the “*” wild card.