title: Internet Explorer Warning when embedding Youtube on HTTPS site?
body: <p><strong>EDIT 22 March 2011</strong>: This question is no longer that relevant since Youtube now offers HTTPS access: <a href="http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html" rel="nofollow noreferrer">http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html</a></p>
  
  <hr>
  
  <p>Our application is run over HTTPS which rarely presents any problems for us. When it comes to youtube however, the fact that they do not present any content over SSL connections is giving us some head ache when trying to embed clips. Mostly because of Internet Explorers famous little warning message:</p>
  
  <blockquote>
    <p>"Do you want to view only the webpage
    content that was delivered securely?
    This page contains content that will
    not be delivered using a secure HTTPS
    ... etc"</p>
  </blockquote>
  
  <p>I've tried to solve this in several ways. The most promising one was to use the ProxyPass functionality in Apache to map to YouTube.</p>
  
  <p>Like this: </p>
  
  <pre><code>ProxyPass: /youtube/ http://www.youtube.com
  ProxyPassReverse: /youtube/ http://www.youtube.com
  </code></pre>
  
  <p>This gets rid of the annoying warning. However, the youtube SWF fails to start streaming The SWF i manage to load into the browser simply states : "An error occurred, please try again later".</p>
  
  <p>Potential solutions are perhaps: </p>
  
  <ul>
  <li>Download youtube FLV:s and serve them out of own domain (gah)</li>
  <li>Use custom FLV-player and stream only FLV:s from youtube over a https proxy?</li>
  </ul>
  
  <p><strong>Update 10 March</strong>: I've tried to use <a href="http://code.google.com/apis/youtube/flash_api_reference.html" rel="nofollow noreferrer">Googles Youtube API for ActionScript</a> to load a player. It looked promising at first and I was able to load a player through my https:// proxy. However, the SWF that is loaded contains loads of explicit calls to different non-ssl urls to create authentication links for the FLV-stream and for loading different crossdomain policies.</p>
  
  <p>It really seems like we're not supposed to access flv-streams directly. This makes it very hard to bypass the Internet Explorer warning, short of ripping out the FLV:s from youtube and serving them out of your own domain.</p>
  
  <p>There are solutions out there for downloading youtubes FLV:s. But that is not compliant with the Youtube terms of use and is really not an option for us.</p>