why iframe control is not loading the source page

2019-06-11 23:06发布

问题:

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