Skip to content

Instantly share code, notes, and snippets.



Last active Jan 24, 2016
What would you like to do?
Bootstrap Themes Issue


Loading works fine, but doesn't.

From the preview page:

<iframe class="iframe-preview js-iframe" src="//"></iframe>

With HTTPS, this tries to load

$ curl -I ""
HTTP/1.1 301 Moved Permanently
Content-Type: text/html

Since "application" is a directory, tries to redirect /application to /application/. But for whatever reason, the responding server hardcodes http:// in the Location header, instead of matching the same protocol as the original request. I've tested this on Firefox and Chrome, and both refuse to load a page served over HTTP into an iframe embedded in a page served over HTTPS, due to the mixed content restriction.

Solution: change the src of the iframe to // This avoids the bad redirect.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.