why iframe control is not loading the source page

2019-06-11 22:41发布

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条回答
女痞
2楼-- · 2019-06-11 23:05

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

查看更多
登录 后发表回答