更新时间:2021-11-22 21:22:18
This could be version compatiiblity issue. Check out the answers on a similar issue here
否则,这可能是因为您已阻止应用程序中的API URL.在config.xml中设置以下值
Else, this could be because you have blocked the API URLs in your application. Set the following values in your config.xml
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
注意:这不是建议的生产设置.如果此解决方案适合您,请考虑对URL进行微调.有关更多详细信息,请参考将URL列入白名单-Cordova文档有关如何配置它的信息.
Note: This is not a recommended setting for production. If this solution works for you consider fine-tuning your URLs. Refer Whitelisting URLS - Cordova Documentation for more details on how you can configure this.