title: jQuery Ajax POST unsuccessful
body: <p>I'm unable to successfully post using jquery's ajax functionality. </p>
  
  <p>URL of the running page is <code>http://localhost:9999</code>, URL of the target (web service) is <code>http://localhost:8080</code>. No the ports aren't the same, they are 9999 and 8080 respectively. </p>
  
  <p>Below is the request and jquery ajax code. </p>
  
  <p><strong>Request:</strong></p>
  
  <pre><code>OPTIONS /profile/set_member HTTP/1.1
  Host: localhost:8080
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Origin: http://localhost:9999
  Access-Control-Request-Method: POST
  </code></pre>
  
  <p><strong>jQuery ajax code:</strong></p>
  
  <pre><code>$.ajax({ 
          type: "POST", url: "http://localhost:8080/profile/set_member", 
          contentType: "application/json", data: member, 
          error: function(){ alert('Update failed!'); }, 
          processData: false, 
          success: function(){ alert('Update successful!'); }
  });
  </code></pre>