title: Socket IO - Chrome Extension CORS
body: <p>I am working on a chrome extension that uses socket IO to communicate with a backend server. The problem is that my connection seems to be blocked by cross origin policies.</p>
  
  <p>My server is running on localhost, bit the chrome extension that i am loading from local directory has some other "origin" header and thus my requests are blocked.</p>
  
  <p>How can I allow a socket IO connection from local chrome extension ?</p>
  
  <p>The request: </p>
  
  <pre><code>https://localhost:8000/socket.io/?EIO=3&amp;transport=polling&amp;t=LkNvOuH net::ERR_CONNECTION_CLOSED
  </code></pre>
  
  <p>The headers:</p>
  
  <pre><code>Provisional headers are shown
  Accept:*/*
  Origin:chrome-extension://acgnndapfmilgphkhkdkipfiipikkjki
  Referer:https://docs.google.com/presentation
  User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36
  </code></pre>