Phonegap/callback/cordova在所有平台上都有白名单吗?它们每个都以相同的方式实现吗?Phonegap 1.3.0中的白名单状态是什么?
5
A
回答
16
白名单出现在iOS和Android上,但尚未在其他平台上出现。
在的iOS,它会被这里解释 “外部主机” 的名义下: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>
对于Android,该功能目前尚未记录虽然进行了修复,但有点bug。此线程包含一些很好的疑难解答细节:https://groups.google.com/forum/#!topic/phonegap/9NZ4J4l1I-s
简而言之,它是xml/phonegap.xml中的'access'属性。它使用Perl样式的正则表达式
To allow all domains (debugging): <access origin=".*"/>
很快,这可能是变化的语法如下:
<access origin="https://example.com" subdomains="true" />
白名单上黑莓被提供作为WebWorks的框架 的一部分,并且被配置via config.xml:
https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/access_element_834677_11.html
示例项目允许通过“*”通配符访问所有URL。
相关问题
- 1. 白名单的PhoneGap Android是不是
- 2. iOS的缺失phonegap-1.3.0.js
- 3. 什么是白名单和黑名单数据?
- 4. 用于Android的Phonegap白名单域
- 5. Android中的“状态”是什么意思
- 6. Redux中的状态是什么?
- 7. 什么是jQuery中的状态管理?
- 8. NHibernate 3 - 状态是什么?
- 9. 什么是陈旧状态?
- 10. 什么是状态空间?
- 11. PhoneGap 1.5(Cordova)+ ChildBrowser白名单问题
- 12. Phonegap:源URL不在白名单
- 13. 白名单中的白名单主页
- 14. 1.3.0中的Castle.Core.LifeStyleType发生了什么?
- 15. 什么是无状态类(在asp.net中)?
- 16. PhoneGap的用途是什么?
- 17. 什么是C++的当前状态AMP
- 18. 综合理解的状态是什么?
- 19. Ember.js框架的状态是什么?
- 20. 什么是openshift pod的CrashLoopBackOff状态?
- 21. 什么是Kubernetes POD状态的jsonpath?
- 22. 拨出电话的状态是什么
- 23. Javascript语言的状态是什么?
- 24. Java Bean绑定的状态是什么?
- 25. 什么是对象的不同状态?
- 26. 什么是508的http响应状态?
- 27. dart调试器的状态是什么?
- 28. Microsoft ProClarity的当前状态是什么?
- 29. MSN openID集成的状态是什么?
- 30. request.referer方法的状态是什么?