title: Any way to get past Access-Control-Allow-Origin for development on my own server?
body: <p>I'm getting this JavaScript error</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <a href="http://foo.bar.no/API/map_tools/clean_addresses/check">http://foo.bar.no/API/map_tools/clean_addresses/check</a>. Origin <a href="http://foo.bar.no:9294">http://foo.bar.no:9294</a> is not allowed by Access-Control-Allow-Origin.</p>
  </blockquote>
  
  <p>This is all on the same domain and the same server, but my JavaScript project is being hosted by a standalone server script that automatically bundles the JavaScript and it's dependencies into one file.</p>
  
  <p>How do I get past this restriction while I'm developing?</p>
  
  <hr>
  
  <p>I've tried allowing my JavaScript server script to connect. This is the result of a curl to the url:</p>
  
  <pre>
  HTTP/1.1 200 OK
  Date: Wed, 11 Jan 2012 09:05:14 GMT
  Server: Apache/2.2.16 (Debian)
  Access-Control-Allow-Origin: http://foo.bar.no:9294
  Vary: Accept-Encoding
  Content-Length: 70
  Content-Type: text/plain
  
  array(1) {
    ["q"]=>
    string(31) "map_tools/clean_addresses/check"
  }
  </pre>
  
  <p>And still I get the exact same error as I pasted above. Why does Chrome still refuse to connect to the damn URL when it's obviously allowed to!?</p>