Image Phonegap映像未从外部http加载

Image Phonegap映像未从外部http加载,image,cordova,content-security-policy,Image,Cordova,Content Security Policy,我的phonegap应用程序使用phonegap 4.0运行良好 刚刚升级到6.0,使用相同的代码。从self加载的这些图像已加载,但从外部http加载的图像未加载。如。我尝试更改meta CSP设置和config.xml,但都没有帮助 config.xml <access origin="*"></access> <allow-navigation href="http://*/*" /> <allow-intent href="http://*/*"

我的phonegap应用程序使用phonegap 4.0运行良好

刚刚升级到6.0,使用相同的代码。从self加载的这些图像已加载,但从外部http加载的图像未加载。如。我尝试更改meta CSP设置和config.xml,但都没有帮助

config.xml

<access origin="*"></access>
<allow-navigation href="http://*/*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" /> 
<allow-intent href="*" />

index.html(添加了img src*)



还有其他原因吗?我正在从phonegap桌面服务器和phonegap移动应用程序运行

正常。知道原因但没有解决。这是因为phonegap桌面服务器应用程序覆盖了我们自己的CSP设置

链接github.com/phonegap/connect-phonegap/issues/163–Fxster 43分钟前编辑


图像在安装到手机时正在加载

正常。知道原因但没有解决。这是因为phonegap桌面服务器应用程序覆盖了我们自己的CSP设置

链接github.com/phonegap/connect-phonegap/issues/163–Fxster 43分钟前编辑


图像在安装到手机时正在加载

ok。这是因为phonegap桌面服务器应用程序覆盖了我们自己的CSP设置。链接它在安装到phoneok时工作。这是因为phonegap桌面服务器应用程序覆盖了我们自己的CSP设置。链接它在安装到手机中时工作正常
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline';img-src *; style-src 'self' 'unsafe-inline'; media-src *" />