【发布时间】:2022-06-15 16:20:37
【问题描述】:
我已经创建了一个 web 选项卡,并且我已经放置了一个 URL,但是该站点没有加载,所以我创建了一个闪电组件,我已经在它的 iframe 中放置了一个代码,但是我仍然无法加载 URL 内容得到错误拒绝连接
谁能帮助我为什么我无法加载该网站 错误:“拒绝连接”
<div id="aura-page">
<iframe src="https://www.google.com/"
width="100%"
height="500px"
sandbox="allow-top-navigation allow-scripts allow-forms allow same-origin"
scrolling="auto"/>
</div>
【问题讨论】:
-
这能回答你的问题吗? Lightning embed iframe from another website
-
你能粘贴你的代码吗/它是否发生在任何网站上(比如检查我在链接问题中使用的
https://example.com)。您在浏览器的错误控制台 (F12) 中究竟看到了什么
标签: salesforce apex salesforce-lightning