title: Cookie not sent in Chrome Cross Domain Post
body: <p>I want to provide a cross domain service using POST. I can see preflight OPTIONS call successful, but when I post, the cookie is not sent in Chrome. The same javascript and server code work for Firefox and Safari. What could be the problem? Here are the details:</p>
  
  <p>Request URL:http://j.test.com/Post<br>
  Request Method:OPTIONS <br>
  Status Code:200 OK<br>
  Request Headersview source<br>
  Accept:<em>/</em><br>
  Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3<br>
  Accept-Encoding:gzip,deflate,sdch<br>
  Accept-Language:en-US,en;q=0.8<br>
  Access-Control-Request-Headers:origin, x-requested-with, content-type, accept<br>
  Access-Control-Request-Method:POST<br>
  Connection:keep-alive<br>
  Host:j.test.com<br>
  Origin:http://www.amazon.com<br>
  Referer:http://www.amazon.com/Gone-Girl-A-Novel-ebook/dp/B006LSZECO/ref=pd_rhf_gw_s_ts_2<br>
  User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11<br></p>
  
  <p>Response Headers<br>
  Access-Control-Allow-Credentials:true<br>
  Access-Control-Allow-Headers:origin, x-requested-with, content-type, accept<br>
  Access-Control-Allow-Methods:POST, OPTIONS<br>
  Access-Control-Allow-Origin:http://www.amazon.com<br>
  Access-Control-Max-Age:1728000<br>
  Connection:keep-alive<br>
  Content-Length:0<br>
  Date:Tue, 04 Sep 2012 16:44:48 GMT<br>
  Server:nginx<br></p>
  
  <p>I use jQuery:</p>
  
  <pre><code>  jQuery.ajax({
       type: "POST",
       url: "http://j.test.com/Post",
       xhrFields: {
          withCredentials: true
       },
       data: {
              referringUrl: document.URL
             },
       success: function(data) {
       },
       error: function (responseData, textStatus, errorThrown) {
       }
    });
  </code></pre>