title: Origin is not allowed by Access-Control-Allow-Origin
body: <p>I'm making an <code>Ajax.request</code> to a remote PHP server in a <a href="https://en.wikipedia.org/wiki/Sencha_Touch" rel="noreferrer">Sencha Touch</a> 2 application (wrapped in <a href="http://en.wikipedia.org/wiki/PhoneGap" rel="noreferrer">PhoneGap</a>).</p>
  
  <p>The response from the server is the following:</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <a href="http://nqatalog.negroesquisso.pt/login.php" rel="noreferrer">http://nqatalog.negroesquisso.pt/login.php</a>. Origin <code>http://localhost:8888</code> is not allowed by Access-Control-Allow-Origin.</p>
  </blockquote>
  
  <p>How can I fix this problem?</p>