html - How to allow http content within an iframe on a https site -
i load html iframe when file referenced using http, not https, following error:
[blocked] page @ {current_pagename} ran insecure content {referenced_filename}
is there way turn off or way around it?
the iframe has no src
attribute , contents set using:
frame.open(); frame.write(html); frame.close();
based on generality of question, think, you'll need setup own https proxy on server online. following steps:
- prepare proxy server - install iis, apache
- get valid ssl certificate avoid security errors (free startssl.com example)
- write wrapper, download insecure content (how below)
- from site/app https://yourproxy.com/?page=http://insecurepage.com
if download remote site content via file_get_contents or similiar, can still have insecure links content. you'll have find them regex , replace. images hard solve, Ï found workaround here: http://foundationphp.com/tutorials/image_proxy.php
Comments
Post a Comment