使用Cordova 5在iOS上出现ERROR白名单拒绝

Mah*_*tah 7 ios cordova

我已经使用cordova近3年了,并且曾经在config.xml中添加以下行来将所有资源列入白名单.

<access origin="*" />
Run Code Online (Sandbox Code Playgroud)

今天,我升级到了cordova 5,我收到了很多以下错误

ERROR whitelist rejection: url='example.com'
Run Code Online (Sandbox Code Playgroud)

我安装了cordova-plugin-whitelist,并使用以下3行更新了我的config.xml

<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />
Run Code Online (Sandbox Code Playgroud)

并将以下元标记添加到我的index.html两次,一次是间隙,另一次没有它

<meta http-equiv="Content-Security-Policy" content="default-src * data: gap:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
Run Code Online (Sandbox Code Playgroud)

什么都没发生!仍然在Xcode控制台中获得"ERROR白名单拒绝"!

Mah*_*tah 6

像往常一样,我删除了所有平台和插件,重新添加它们,一切正常!