title: Cross domain POST request is not sending cookie Ajax Jquery
body: <p>Seems that something similar already has been discussed on stackoverflow, but i could not find exactly the same.</p>
  
  <p>I am trying to send Cookie with CORS(Cross-origin resource sharing), but it is not working. </p>
  
  <p>This is my code.</p>
  
  <pre><code>$.ajax(
      { 
        type: "POST",
        url: "http://example.com/api/getlist.json",
        dataType: 'json',
        xhrFields: {
             withCredentials: true
        },
        crossDomain: true,
        beforeSend: function(xhr) {
              xhr.setRequestHeader("Cookie", "session=xxxyyyzzz");
        },
        success: function(){
             alert('success');
        },
        error: function (xhr) {
               alert(xhr.responseText);
        }
      }
  );
  </code></pre>
  
  <p>I dont see this cookie in request HEADER.</p>