Closed AniX closed 9 years ago
Regarding a wordpress ticket with mixed content warnings a user suggests the following (quote):
YouTube's oEmbed doesn't do protocol relative URLs. You have to explicitly tell it the scheme to use, with scheme=https for it to use https links in the returned HTML from their embed endpoint.
Maybe that's the reason?
If the parent page is loaded via HTTPS, YouTube links will not be shown due to a Mixed Content warning, even if they are HTTPS links. An HTTPS Twitter links works in the same setup.
Parent page
https://www.mydomain.com/example.html
FICTIVE URL!Binding
(no custom settings)
JavaScript console
It seems a redirect is triggered to an HTTP address, maybe on YouTube's part?
Using the exactly same setup but with an HTTPS Twitter link, e.g.
https://twitter.com/reinmarpl/status/573118615274315776
works as expected, i.e. no Mixed Content warning.Interestingly, I can find a few requests to twitter.com, but no requests to youtube.com.
The problem occurs with Chrome and Firefox.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0
I can provide additional data if needed.