title: What is considered a cross-origin request
body: <p>So I've been trying to connect my javascript webapp to github's API via a server proxy (to hide the <code>client_secret</code>) but I noticed that while I can make HTTP requests (GET,POST etc), I'm not able to do them through my webapp. The server resides in the following url: <code>http://mydomain.com:3000</code> while my webapp is at <code>http://mydomain.com</code>. When I'm trying to use JQuery's <code>$.ajax</code> to do a <code>POST</code>, I'm getting the following error:</p>
  
  <pre><code>No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mydomain.com' is therefore not allowed access.
  </code></pre>
  
  <p>So my question is whether a request to a different port but in the same domain name is considered a cross-origin request</p>