title: Socket io complaining about CORS
body: <p>I started from the netty socketio demo.
  The demo works locally.
  But if I run it on a server, it does not work anymore (even though the client and server are on the same machine).</p>
  
  <p>Chrome, FF and IE are complaining about </p>
  
  <blockquote>
    <p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading
    the remote resource at
    <a href="http://myserver:9092/socket.io/?EIO=2&amp;transport=polling&amp;t=1401964309289-2&amp;sid=1OyDavRDf4WErI-VAAAI" rel="nofollow">http://myserver:9092/socket.io/?EIO=2&amp;transport=polling&amp;t=1401964309289-2&amp;sid=1OyDavRDf4WErI-VAAAI</a>.
    This can be fixed by moving the resource to the same domain or
    enabling CORS.</p>
  </blockquote>
  
  <p>I tried to set the origin in the configuration</p>
  
  <p><code>config.setOrigin("*:*")</code></p>
  
  <p>But no success..</p>
  
  <p>I don't understand what I am doing wrong.
  Netty socketio is supposed to support CORS since version 1.6.6/1.7</p>
  
  <p>Anybody had a similar issue ? I can't find a working solution on the forum..</p>
  
  <p>Thanks a lot.
  Romain</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I can actually access my websocket with pure javascript, targetting ws://....</p>
  
  <p>So the issue seems to be with socket.io, because socketio requires to use http://...</p>
  
  <p>Any ideas ?</p>