Link to home
Start Free TrialLog in
Avatar of metalaureate
metalaureateFlag for United States of America

asked on

IFRAME RPC causes IE to complain that page contains secure and insecure items

Hi Experts

I use an IFRAME to make a Remote Procedure Call to the server. Both the main page, and page called by the IFRAME are https:// secure, however, IE raises the error that the page contains both secure and insecure items. Any one know why and how to avoid it?

Here is the code that creates the IFRAME:

 var tempIFrame=document.createElement('iframe');
      tempIFrame.setAttribute('id','RSIFrame');
      tempIFrame.style.border='0px';
      tempIFrame.style.width='0px';
      tempIFrame.style.height='0px';
      IFrameObj = document.body.appendChild(tempIFrame);
Avatar of GwynforWeb
GwynforWeb
Flag of Canada image

is that not a browser security setting?
It is a browser security setting... and it is correct..
since you can change src of a IFRAME using JavaScript, having an IFRAME at all is an unsecure item.
Avatar of metalaureate

ASKER

Could you explain how an IFRAME with SSL is insecure, as compared to a normal page with SSL?
it is not the iframe it is the content.
ASKER CERTIFIED SOLUTION
Avatar of kennethxu
kennethxu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, that fixed it.