title: iframe embedded YouTube video unavailable on NodeJS
body: <p>I was trying to implement a simple player with a web server on a VM when I stumbled across this issue.</p>
  
  <p>server.js</p>
  
  <pre><code>const express = require('express'); 
  var app = express();
  var path = __dirname + '/views/' ;
  app.get("/",function(req,res,next){
    res.sendFile(path + "index.html");
  });
  app.listen(1823);
  console.log('listening');
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Alpha&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;iframe id="player" width="640" height="360" src="http://www.youtube.com/embed/N0dbGGvsjf8?enablejsapi=1&amp;origin=http://192.168.150.129"&gt;
      &lt;/iframe&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Accessing the site locally with <a href="http://localhost:1823" rel="nofollow noreferrer">http://localhost:1823</a> works just fine.
  However, accessing the site from the local network such as <a href="http://192.168.150.129:1823" rel="nofollow noreferrer">http://192.168.150.129:1823</a> the iframe(?) stops working.</p>
  
  <p><a href="https://i.stack.imgur.com/w5Sbg.png" rel="nofollow noreferrer">Screenshot</a></p>
  
  <p>Same video works on <a href="http://jsfiddle.net/6958fnsm/" rel="nofollow noreferrer">JSFiddle</a>.</p>
  
  <p>NB: This only happens on <i>certain</i> videos.</p>
  
  <p>e.g. with this iframe</p>
  
  <pre><code>&lt;iframe id="player" type="text/html" width="640" height="360" src="http://www.youtube.com/embed/PfYnvDL0Qcw?enablejsapi=1&amp;origin=http://192.168.150.129"&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>Both localhost and IP work the same.</p>
  
  <p>All seems to point towards Node doing something?
  Why some videos <i>work</i> and others do not?</p>