title: CORS not working with hapijs and socket.io
body: <p>so i have a server set up using hapi js and socket.io</p>
  
  <pre><code>var hapi = require('hapi');
  var server = new hapi.Server();
  server.connection({
      host : 'localhost',
      port: 3000,
      routes: {cors: true}
  });
  var io = require("socket.io")(server.listener);
  </code></pre>
  
  <p>on the client</p>
  
  <pre><code>var io = socket.connect(':3000');
  </code></pre>
  
  <p>when i access from localhost everything works fine, but when i access from the external IP i get the CORS error and can't make it work, on the server i've tried <code>io.set( "origins", "*:*" );</code> didn't work, and <code>io.set('transports', ['websocket', 'xhr-polling', 'jsonp-polling', 'htmlfile', 'flashsocket']);</code> also didn't work and throws a bad request error on the browser.
  am i missing something?
  thanks you very much for your time.</p>