我有一个 IOS 应用程序需要在应用程序内的 iframe 中加载一些外部 url。
我的代码看起来像
<body>
<iframe width="560" height="315" src="https://www.google.co.in/" frameborder="0" allowfullscreen></iframe>
<div class="footer"></div>
</body>
Cordova plist:
OpenAllWhitelistURLsInWebView: YES
ExternalHosts: *
但是每当我尝试加载页面时我都会遇到错误
“无法加载网页,出现错误:操作无法完成。(NSURLErrorDomain 错误 -999。)”
我无法加载外部 url
谁能帮我解决这个问题
最佳答案
更新你的config.xml
<access origin="*" />
关于ios - phonegap 中的 iframe 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12776721/