question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

django-embed-video==1.2 is rendering the iframe as HTTP rather than HTTPS.

See original GitHub issue

When 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.

  1. The URL added is HTTPS
  2. When I manually create the iframe with src of my_video.url it works
  3. 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aleksihaklicommented, Dec 5, 2022

Should be fixed by the PR, thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found