title: How to set cookie value with AJAX request?
body: <p>I want to set a cookie value on an AJAX request but the code below doesn't work. </p>
  
  <pre><code>$.ajax({
      type: "GET",    
      url: "http://example.com",
      cache: false,
      setCookies: "lkfh89asdhjahska7al446dfg5kgfbfgdhfdbfgcvbcbc dfskljvdfhpl",
      crossDomain: true,
      dataType: 'json',
      success: function (data) {
          alert(data);
      });
  </code></pre>
  
  <p>How can I set cookies in the header?</p>