Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTPS iframe in HTTP page, browser false warnings

I have a facebook tab which is setup with a typical html form, that utilizes mod_rewrite to default to HTTPS because of sensitive data.

When a facebook user (without secured browsing) hits it with HTTP protocol, FF 23 and IE 10.0.9 throw error saying there is a protocol mismatch between the url and iframe(facebook tab). I think this feature was created to catch HTTPS pages with HTTP content on them, but in this case it's the opposite. These browsers don't care. The user has to "opt-in" to allow the rest of the site to load, making the user experience less than enjoyable, mostly because it kills some javascript.

Has anyone experienced this issue. If yes, what was your solution.

Thank you.

like image 452
Chuck Morris Avatar asked Aug 11 '26 05:08

Chuck Morris


1 Answers

Same Origin Policy as specified in RFC 6454 Subsection 3.2 covers the protocol, host, and domain.

Iow: Sorry, it's as designed.

like image 70
antoniuslin Avatar answered Aug 13 '26 01:08

antoniuslin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!