标签:
(1)解决方案
http://stackoverflow.com/questions/36572537/cordova-ios-blank-iframe/36587026
在 index.html中配置meta
<meta http-equiv="Content-Security-Policy"
content="default-src *; frame-src *; style-src * ‘self‘ ‘unsafe-inline‘ ‘unsafe-eval‘;
script-src * ‘self‘ ‘unsafe-inline‘ ‘unsafe-eval‘;">
context-security-policy中详细请查看:
https://content-security-policy.com/
(2)在config.xml中配置
<access origin="*" subdomains="true" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
以上就可以在 iphone 通过 iframe导入,但是别忘记,argularjs中的把url设置为可信源
$sce.trustAsResourceUrl(url)
cordova iOS blank iframe iphone iframe 白屏 ios iframe 白屏
标签:
原文地址:http://www.cnblogs.com/he0xff/p/5809203.html