【发布时间】:2015-06-27 18:02:12
【问题描述】:
我刚刚更新了我的科尔多瓦版本。当我跑步时
cordova -v
它输出版本 5.0.0
在我拥有的旧版 Cordova(我实际上不记得那是什么版本)上,我能够使用 AJAX 从给定的 URL 请求数据。但是,更新 Cordova 版本后,它不再工作。此次更新后我没有对代码进行任何编辑,所以我猜测新 Cordova 版本中的某些内容会阻止请求通过。
我在 config.xml 文件中添加了以下访问权限:
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
但还是没有运气。
有没有人遇到过类似的问题?知道如何让它再次工作吗?
谢谢,
【问题讨论】: