title: Javascript make ajax request without session cookie
body: <p>I'm in firefox. Is there a way in javascript to make an http request with only custom headers? i.e. no cookie fields or user agent or anything, only what my js code specifies.</p>
  
  <p>It should be base js not a library like jquery.</p>
  
  <p>For example, trying to send Http GET without the 'Cookie' header, I tried already:</p>
  
  <pre><code>var myRequest = new XMLHttpRequest();
  myRequest.open("GET", "http://asite.com");
  myRequest.setRequestHeader("Cookie", '');
  myRequest.send();
  </code></pre>
  
  <p>But I look in the developer console and the request was still sent with the session cookie. I also tried:</p>
  
  <pre><code>myRequest.setRequestHeader("Cookie", null);
  </code></pre>