title: Cookie not getting sent by Chrome and withCredentials is true
body: <p>Chrome is choosing not to send a Cookie header in a GET request.  I am overriding <code>XMLHTTPRequest</code> so that when a library calls <code>open()</code>, it calls the original implementation of <code>open()</code> and then sets <code>withCredentials = true</code>.  </p>
  
  <p>I have tried taking a netlog viewer session but that does not seem to show cookie related items.  I have tried different binding techniques but I do not think this problem is <code>this</code> context related.  The cookie shows up fine in the cookie list under Application in the browser tools. The domain is listed as <code>.mydomain.com</code></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
     document.cookie = "ATOKEN=\"d=dflskdjflsdkfj=1,\"; Version=1; Domain=.mydomain.com; expires=Tues, 23 Jul 2019 20:54:04 GMT; Path=/";
  
     // library makes request to a-subdomain.mydomain.com
  
     var originalXMLHttpRequest = XMLHttpRequest;
  
     XMLHttpRequest = function ()
     {
       var xhr     = new originalXMLHttpRequest();
       var _httpOpen = xhr.open.bind(xhr);
  
       xhr.open = function (method, url, flag)
       {
         _httpOpen(method, url, flag ? flag : true);
  
         if (url.indexOf('a-subdomain') &gt;= 0)
         {
           xhr.withCredentials = true;
         }
       };
  
       return xhr;
     };
  &lt;/script&gt;
  </code></pre>
  
  <p>Using a Charles proxy to see 403'ed request and notice that Cookie header is not present.  Cookie header should be there with Cookie: ...</p>