q2a-embed icon indicating copy to clipboard operation
q2a-embed copied to clipboard

Embed URLs are http which break mixed content rules on encrypted sites

Open eudoxos opened this issue 9 years ago • 1 comments

When q2a is accessed over https, embeds with http are not displayed -- as a result of Mixed content (http://www.w3.org/TR/mixed-content/) blocking which is on by default in Firefox since some time (and in other browsers, too).

I was able to work around the issue for a site using https exclusively by replacing the protocol in by hand (e.g. in https://github.com/NoahY/q2a-embed/blob/master/qa-embed-layer.php#L51).

The code should find out whether it is accessed through an encrypted connection or not, and use http or https for embedded URLs based on that.

eudoxos avatar Jun 11 '15 19:06 eudoxos

I just replaced http:// with just // to let the browser figure out the protocol

Alvarofg avatar Nov 17 '17 15:11 Alvarofg