diff --git a/pythonsd/templates/pythonsd/fragments/recent-videos.html b/pythonsd/templates/pythonsd/fragments/recent-videos.html index a50668c..94d28ad 100644 --- a/pythonsd/templates/pythonsd/fragments/recent-videos.html +++ b/pythonsd/templates/pythonsd/fragments/recent-videos.html @@ -1,8 +1,18 @@ {% if recent_videos %} {% with most_recent_video=recent_videos|first %} + {% comment %} + In addition to running the "privacy" domain for YouTube (youtube-nocookie), + we are sandboxing YouTube to prevent it from setting cookies among other things. + The "allow-popups" flags allow people to hit the "Watch on YouTube" button + on the video player which navigates users to YouTube. + + See: + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#allow + {% endcomment %}
{% endwith %}