youtube_it
youtube_it copied to clipboard
Remove HTTP from URL's to avoid mixed content on secure site
I am loading videos onto a secure(HTTPS) site but they don't display in production as it throws a mixed content error in the console. Using Chrome by the way.
Here's my code:
@latest_videos ||= yt_client.videos_by(:user => 'foobar').videos
<% @latest_videos[0..2].each do |video| %> <%= raw video.embed_html5({width: '312', height: '240', frameborder: '0', fullscreen: true, modestbranding: "1"}) %> <% end %>