title: XmlHttpRequest Cannot Load Error with youtube video link
body: <p>Im getting the following error </p>
  
  <p>"jlEYu--6T14?rel=0&amp;enablejsapi=1&amp;autoplay=1&amp;controls=0&amp;showinfo=0&amp;loop=1&amp;playlist=jlEYu--6T14:1 XMLHttpRequest cannot load <a href="https://r3---sn-a5m7zu7e.googlevideo.com/videogoodput?id=o-AOVPXHeRRmIiRNUb" rel="nofollow">https://r3---sn-a5m7zu7e.googlevideo.com/videogoodput?id=o-AOVPXHeRRmIiRNUb</a>…a&amp;cms_redirect=yes&amp;ipbits=0&amp;mm=34&amp;mn=sn-a5m7zu7e&amp;ms=ltu&amp;mt=1460384654&amp;mv=m. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access."</p>
  
  <p>with the following code used to play a video from youtube</p>
  
  <pre><code> &lt;iframe id="player" width="800" height="480"
                      src="https://www.youtube.com/embed/jlEYu--6T14?rel=0&amp;enablejsapi=1&amp;autoplay=1&amp;controls=0&amp;showinfo=0&amp;loop=1&amp;playlist=jlEYu--6T14"
                      frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  
  &lt;script&gt;
                  @*To mute the video*@
      @*To load the youtube player api asynchronously*@
                  var tag = document.createElement('script');
                  tag.src = "https://www.youtube.com/iframe_api";
                  var firstScriptTag = document.getElementsByTagName('script')[0];
                  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  
  
                  var player;
                  var player;
                  function onYouTubeIframeAPIReady() {
                      player = new YT.Player('player', {
                          //height: '390',
                          //width: '640',
                          //videoId: 'jlEYu--6T14',
                          events: {
                              'onReady': onPlayerReady,
                              //'onStateChange': onPlayerStateChange
                          }
                      });
                  }
  
                  function onPlayerReady(event) {
                      event.target.setVolume(0);
                      event.target.playVideo();
                      //player.mute();
                  }
              &lt;/script&gt;
  </code></pre>
  
  <p>What could be causing this ? How do i solve it?</p>