क्या फोनगैप/कॉलबैक/कॉर्डोवा के सभी प्लेटफॉर्म पर श्वेतसूची है? क्या यह प्रत्येक पर एक ही तरीके से लागू किया गया है?फोनगैप 1.3.0 में श्वेतसूची की स्थिति क्या है?
उत्तर
श्वेतसूची आईओएस और एंड्रॉइड दोनों पर मौजूद है, लेकिन अभी तक अन्य प्लेटफ़ॉर्म नहीं हैं। http://wiki.phonegap.com/w/page/41631150/PhoneGap%20for%20iOS%20FAQ
Q. Links to and imported files from external hosts don't load?
A. The latest code has the new white-list feature. If you are
referencing external hosts, you will have to add the host in PhoneGap.plist
under the "ExternalHosts" key. Wildcards are ok. So if you are connecting to
"http://phonegap.com", you have to add "phonegap.com" to the list (or use the
wildcard "*.phonegap.com" which will match subdomains as well).
उदाहरण के लिए::
<key>ExternalHosts</key>
<array>
<string>*</string>
</array>
लिए
आईओएस के तहत, यह "बाहरी होस्ट," के नाम जो यहां से समझाया गया है के तहत चला जाता है एंड्रॉइड, सुविधा वर्तमान में अनूदित है और कुछ हद तक छोटी गाड़ी, हालांकि फिक्स से गुजर रहा है। इस धागे में कुछ अच्छे समस्या निवारण विवरण हैं: https://groups.google.com/forum/#!topic/phonegap/9NZ4J4l1I-s
संक्षेप में, यह xml/phonegap.xml में 'एक्सेस' विशेषता है। यह पर्ल शैली regex
To allow all domains (debugging): <access origin=".*"/>
जल्द ही उपयोग करता है, यह निम्न सिंटैक्स के लिए परिवर्तन हो सकता है:
<access origin="https://example.com" subdomains="true" />
श्वेतसूची पर ब्लैकबेरी WebWorks ढांचे के हिस्से के रूप प्रदान की जाती है और कॉन्फ़िगर किया गया है config.xml के माध्यम से:
https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/access_element_834677_11.html
नमूना प्रोजेक्ट "*" वाइल्ड कार्ड के माध्यम से सभी यूआरएल तक पहुंच की इजाजत देता है।