django-embed-video==1.2 is rendering the iframe as HTTP rather than HTTPS.
See original GitHub issueWhen I use the code below the iframe URL is generated as HTTP rather than HTTPS. This means the video does not render because of Chrome mixed protocol policy. Should it be rendering as HTTPS or am I doing something wrong.
- The URL added is HTTPS
- When I manually create the iframe with src of my_video.url it works
- This happens on both Youtube and Vimeo
Template code:
{% video block.content.url is_secure=True as my_video %}
<!--
URL: {{ my_video.url }}
Thumbnail: {{ my_video.thumbnail }}
Backend: {{ my_video.backend }}
-->
{% video my_video "medium" %}
{% video block.content.url is_secure=True as my_video %}
HTML output:
<!--
URL: https://player.vimeo.com/video/691993464
Thumbnail: https://i.vimeocdn.com/video/1400681081-e59b05da89e3157e29630ebf81c338608d83bf2aac9a13d6922a3e2fc10f1ee0-d_640
Backend: VimeoBackend
-->
<iframe width="640" height="480" src="http://player.vimeo.com/video/691993464" frameborder="0" allowfullscreen=""></iframe>
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to allow http content within an iframe on a https site
If for no other reason than it increases seo. Unless you can get the http site owner to create an ssl certificate, the...
Read more >Sitecore IFrame rendering HTTP instead of HTTPS
Does the site you run has this settings in the site definition: <sites> <site name="website" scheme=”https”... /> </sites>.
Read more ><iframe>: The Inline Frame element - HTML - MDN Web Docs
The <iframe> HTML element represents a nested browsing context, ... remove the sandbox attribute — making it no more secure than not using ......
Read more >The ultimate guide to iframes - LogRocket Blog
<iframe src="https://www.google.com/" height="500px" ... You may find more than the ones listed above, but keep in mind that they are not ...
Read more >It's time to lazy-load offscreen iframes! - web.dev
The loading attribute allows a browser to defer loading offscreen iframes and images until users scroll near them. loading supports two values:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Should be fixed by the PR, thank you!
https://github.com/jazzband/django-embed-video/pull/194