IOS - cordova inappbrowser错误,无法显示来自iframe的网页

时间:2016-06-03 04:35:03

标签: javascript ios cordova iframe

尝试删除安全地址但未解决。并且已安装插件inappbrowser最新但未解决。

请告知..

这是控制台日志中的错误代码:

2016-06-03 11:20:44.157 thetestflight[4642:351202] Resetting plugins due to page load.
2016-06-03 11:20:45.467 thetestflight[4642:351202] Finished load of: 
file:///Users/solution/Library/Developer/CoreSimulator/Devices/EF2995F3-CB8E-4C20-BAA0-C096F15F920F/data/Containers/Bundle/Application/E652A38C-EB46-4241-B8F6-31490C21A5A8/ManNa%20Korea.app/www/page-2337.html
2016-06-03 11:20:45.864 thetestflight[4642:351202] THREAD WARNING: ['File'] took '20.331787' ms. Plugin should use a background thread.
2016-06-03 11:34:20.603 thetestflight[4642:351202] ERROR Internal navigation rejected - <allow-navigation> not set for url='https://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fmannakorea.sg&width&height=558&colorscheme=light&show_faces=true&header=false&stream=true&show_border=false'
2016-06-03 11:34:20.615 thetestflight[4642:351202] CDVWebViewDelegate: Navigation started when state=1
2016-06-03 11:34:20.615 thetestflight[4642:351202] Failed to load webpage with error: CDVWebViewDelegate: Navigation started when state=1

谢谢

1 个答案:

答案 0 :(得分:1)

您使用的是cordova whitelist plugin吗?

如果没有安装它并将其放入config.xml

<access origin="*"/>
<access origin="tel:*" launch-external="yes"/>
<allow-navigation href="*"/>
<allow-navigation href="http://*/*"/>
<allow-navigation href="https://*/*"/>
<allow-navigation href="data:*"/>
<allow-intent href="*"/>
<access origin="*"/>