youtube_it icon indicating copy to clipboard operation
youtube_it copied to clipboard

Remove HTTP from URL's to avoid mixed content on secure site

Open dankmitchell opened this issue 10 years ago • 0 comments

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

dankmitchell avatar Jan 18 '15 23:01 dankmitchell