且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

拒绝连接到 [Any Url],因为它违反了以下内容安全策略指令

更新时间:2021-06-30 23:21:32

您需要安装白名单插件 允许在您的 Cordova 应用程序中支持 XHR.没有它,您就无法发出外部请求.

You need to install the whitelist plugin to allow XHR support in your Cordova app. You can't make external requests without it.

运行:cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git