File tree 1 file changed +11
-1
lines changed
pythonsd/templates/pythonsd/fragments
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
{% if recent_videos %}
2
2
{% with most_recent_video=recent_videos|first %}
3
3
4
+ {% comment %}
5
+ In addition to running the "privacy" domain for YouTube (youtube-nocookie),
6
+ we are sandboxing YouTube to prevent it from setting cookies among other things.
7
+ The "allow-popups" flags allow people to hit the "Watch on YouTube" button
8
+ on the video player which navigates users to YouTube.
9
+
10
+ See:
11
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox
12
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#allow
13
+ {% endcomment %}
4
14
< div class ="embed-responsive embed-responsive-16by9 w-75 ">
5
- < iframe class ="embed-responsive-item " src ="https://www.youtube-nocookie.com/embed/{{ most_recent_video.id }} " title ="YouTube video player " frameborder ="0 " allow ="autoplay; encrypted-media; picture-in-picture; web-share " allowfullscreen > </ iframe >
15
+ < iframe class ="embed-responsive-item " src ="https://www.youtube-nocookie.com/embed/{{ most_recent_video.id }}?html5=1 " title ="YouTube video player " frameborder ="0 " sandbox =" allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-presentation " allow ="autoplay; encrypted-media; picture-in-picture; web-share " allowfullscreen > </ iframe >
6
16
</ div >
7
17
8
18
{% endwith %}
You can’t perform that action at this time.
0 commit comments