Welcome to WebmasterWorld Guest from 54.159.105.39

Forum Moderators: incrediBILL

Message Too Old, No Replies

Prevent mixed content error when embedding HTTP frame inside an HTTPS

     
11:04 am on Nov 12, 2013 (gmt 0)

Junior Member

5+ Year Member Top Contributors Of The Month

joined:Mar 1, 2010
posts: 196
votes: 0


When I embed an HTTP frame inside an HTTPS parent, I get a security error in Chrome & Firefox. Is there any workaround to use an iframe tag without getting this error?
12:22 pm on Nov 12, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10857
votes: 67


serve the iframed content on a secure page using secure web protocol or remove any active content (such as javascript) from the non-secure iframed page.
10:31 pm on Nov 14, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:July 19, 2013
posts:1097
votes: 0


Another alternative I've had to use when the iFramed content comes from a different webiste that doesn't have https available is to iFrame a "proxy page" on the site I'm working on and use PHP's file_get_contents() on that page to get the info from the other site rather than iFraming the external site's info directly.