mobile - What is the state of whitelisting in phonegap 1.3.0? -



mobile - What is the state of whitelisting in phonegap 1.3.0? -

does phonegap/callback/cordova have whitelist on platforms? implemented same way on each?

the whitelist nowadays on both ios , android, not other platforms yet.

under ios, goes under name of "external hosts," explained here: http://wiki.phonegap.com/w/page/41631150/phonegap%20for%20ios%20faq

q. links , imported files external hosts don't load? a. latest code has new white-list feature. if referencing external hosts, have add together host in phonegap.plist under "externalhosts" key. wildcards ok. if connecting "http://phonegap.com", have add together "phonegap.com" list (or utilize wildcard "*.phonegap.com" match subdomains well).

for example:

<key>externalhosts</key> <array> <string>*</string> </array>

for android, feature undocumented , buggy, although undergoing fixes. thread holds troubleshooting details: https://groups.google.com/forum/#!topic/phonegap/9nz4j4l1i-s

in nutshell, 'access' attribute in xml/phonegap.xml. uses perl-style regex

to allow domains (debugging): <access origin=".*"/>

soon, may alter next syntax:

<access origin="https://example.com" subdomains="true" />

whitelist on blackberry provided part of webworks framework , configured via config.xml:

https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/access_element_834677_11.html

the sample project allows access url via "*" wild card.

mobile cordova callback whitelist

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -