如何在vscode webview中使用iframe
在vscode扩展webview(catcoding)中,我想加载外部网页(比如google,…) 我试过了如何在vscode webview中使用iframe,webview,vscode-extensions,Webview,Vscode Extensions,在vscode扩展webview(catcoding)中,我想加载外部网页(比如google,…) 我试过了 panel.webview.html ="<html> <meta http-equiv="refresh" content="0; url=http://www.google.com/"></meta> </html>" panel.webview.html=” " 您可以尝试在webview中使用ifr
panel.webview.html ="<html>
<meta http-equiv="refresh" content="0; url=http://www.google.com/"></meta>
</html>"
panel.webview.html=”
"
您可以尝试在webview中使用iframe
。只需将其包含在CATCodeing示例的
元素中:
现在,不确定准确呈现google.com网站是否重要,因为该特定网站(以及许多其他网站)拒绝在iframe中呈现。这就是为什么我使用我当地电影院的一个网站,它没有这样的限制,我使用它进行这样的测试。因此,如果您想显示一个在您控制下的网站,也许可以设置策略以允许在iframe中呈现它