Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eudoxos opened this issue Jun 11, 2015 · 1 comment
Open

Comments

@eudoxos
Copy link

eudoxos commented Jun 11, 2015

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.

@Alvarofg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants