title: Failed to execute 'postMessage' on 'DOMWindow' Error
body: <p>I have a video iframe in my website page for this I am using youtube and vimeo videos and change iframe src on finish video.</p>
  
  <p>My code is :</p>
  
  <pre><code>&lt;script src="http://www.youtube.com/player_api"&gt;&lt;/script&gt;
  &lt;script src="https://f.vimeocdn.com/js/froogaloop2.min.js"&gt;&lt;/script&gt;
  function onYouTubePlayerAPIReady()
  {
      player = new YT.Player('video_player', {
          events: {
              'onStateChange': changeVideoSrc,
              'onReady': onPlayerReady
          }
      });
  
  }
  
  function changeVideoSrc()
  {
      // here changing the iframe src
  }
  
  $('#main iframe').load(function() {
      var iframe = $('#video_player');
      var player = $f(iframe);
  
      player.addEvent('ready', function() {
          player.addEvent('finish', onFinish);
      });
      function onFinish(id) 
      {
          // here changing the iframe src
      }
  
  });
  </code></pre>
  
  <p>All are working, but in console there is a error generated on change iframe src that is : </p>
  
  <pre><code>Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://player.vimeo.com').
  </code></pre>
  
  <p>I have also try to add <code>vimeo</code> <code>message</code> event listener but it is not working for me.</p>
  
  <p>How to remove this error from console?</p>