title: CORS error on same domain?
body: <p>I'm running into a weird CORS issue right now. </p>
  
  <p>Here's the error message:</p>
  
  <pre><code>XMLHttpRequest cannot load http://localhost:8666/routeREST/select?q=[...] 
  Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin
  </code></pre>
  
  <p>Two servers:</p>
  
  <ul>
  <li>localhost:8666/routeREST/ : this is a simple Python Bottle server.</li>
  <li>localhost:8080/ : Python simpleHTTPserver where I run y Javascript application. This app is executing Ajax requests on the server above.</li>
  </ul>
  
  <p>Any thought on what could be the problem?</p>
  
  <p>EDIT:</p>
  
  <p>And... the port was the problem. Thanks for your answers :)</p>
  
  <p>If anyone is using a Python bottle server as well, you can follow the answer given on this post to solve the CORS issue:
  <a href="https://stackoverflow.com/questions/17262170/bottle-py-enabling-cors-for-jquery-ajax-requests">Bottle Py: Enabling CORS for jQuery AJAX requests</a></p>