why iframe control is not loading the source page in visual force preview?

允我心安 提交于 2019-12-08 09:39:23

问题


I am new to salesforce. I want to use iframe control in visualforce page to load some content from .net. I've used the iframe control as follows

<apex:page >
  <apex:iframe frameborder="true" src="http://www.salesforce.com" scrolling="true" id="theIframe"/>
</apex:page>

but it is not loading anything in the iframe control.It is showing only white back ground an also I tried with html iframe control but I got the same response. So can anyone please tell me what am I missing?


回答1:


It will be the new chrome security controls. You can't load an http page into an iframe that is on an https page.

You will either need to get an SSL certificate for your iframe page or bypass the security controls.

A small Shield should appear in the address bar that can be used to display the blocked content



来源:https://stackoverflow.com/questions/20279898/why-iframe-control-is-not-loading-the-source-page-in-visual-force-preview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!