Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When nocookie setting is disabled, protocol is forced to be 'http' causing videos to not load on https sites.
Comment | File | Size | Author |
---|---|---|---|
#8 | media_youtube-http_forced_when_nocookie_is_disabled-2883877-8.patch | 417 bytes | brandonpost |
#2 | media_youtube-http_forced_when_nocookie_is_disabled-2883877.patch | 406 bytes | andyg5000 |
Comments
Comment #2
andyg5000Comment #3
dasginganinjaThis issue could also be titled "Youtube Embeds stop working on HTTPS"
This fixed the issue I had with 7.x-3.1 as it gives a protocol-less URL for the embeds.
Comment #4
joelstein CreditAttribution: joelstein at On Fire Media commentedThanks for this patch, we had the exact same problem. This patch resolved it.
Comment #5
joseph.olstadThanks for the patch. I'll cut a new release with this asap.
Comment #7
brandonpost CreditAttribution: brandonpost as a volunteer commentedThe protocol-less URL was the way this module worked before 3.1, but the forced protocol was added because apparently it was needed to resolve issue #1405528. What if we force https rather than http in order to solve both issues? If someone specifically wants to use http, they could use the protocol_specify option and set the protocol to http.
Here is a patch which I believe accomplishes this.
Comment #8
brandonpost CreditAttribution: brandonpost as a volunteer commentedSorry, there was no need to reorder those if-statements. Here's a simpler patch.
Comment #9
joseph.olstadComment #10
andyg5000I think #7 + should be a new issue. Either way, I don't see a problem hard coding https since there's an option to overwrite.
Comment #12
joseph.olstadok, taking latest patch, should be ok