title: CORS not allowing jquery AJAX get results
body: <p>I am calling an AJAX function in my script from a server of IP  -  128.119.30.12:7080   (for example)</p>
  
  <p>Cross Domain: port number are different, so I get error of incompatibility.</p>
  
  <pre><code>            $.ajax({
                  url: "http://128.119.30.12:9000/callback.php",
                  data: dataObj,
                  type: "POST",
                  contentType: 'text/plain',
                  sucess: function(data,status){
                      reply = data;
                  }, 
                  error : function(xhr, status, error){
                      reply = {"error": "Error in fetching data"}
                  }
              }).done(function(reply) {
                  replyCall(reply);
              });
  
              function replyCall(data) {
                  console.log(data);
              }
  </code></pre>
  
  <p>I have enabled the mod_header function in my Apache server. And setting up header in the called php script - here is the script of php</p>
  
  <pre><code>&lt;?php
      header('Access-Control-Allow-Origin: *'); 
      header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
      print 'Hellooooooooo Response';
  ?&gt;
  </code></pre>
  
  <p>It is still causing errors on chrome -
  XMLHttpRequest cannot load <a href="http://128.119.30.12:9000/callback.php" rel="nofollow">http://128.119.30.12:9000/callback.php</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://128.119.30.12:7080" rel="nofollow">http://128.119.30.12:7080</a>' is therefore not allowed access.</p>