Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 WebBrowser 中,我有一个带有 iframe 到 Youtube 视频的页面。出现文本“NavigationCancelled”而不是 iframe。如何修复它以显示 youtube 视频?
这是因为您正在 https 页面内的 iframe 中查看 http 页面。由于某些安全考虑,IE 不允许这样做。而WebBrowser 控件继承了这些安全限制。
在台式机上。您可以切换 IE 的安全设置来解决他的问题。(将“显示混合内容”更改为启用)
但是,您的问题已标记为windows-phone-8。Windows phone 没有这样的安全设置,所以上面的解决方案不起作用。
windows-phone-8
最后,如果您可以控制 Web 服务器,请尝试使用 http 而不是 https。