title: How to get the Ajax header fields in javascript?
body: <p>I am using the following to do a http GET:</p>
  
  <pre><code>$.ajax({
      type: 'GET',
      url: server + '/hello',
      dataType: 'json',
      async: false,
      xhrFields: {
          withCredentials: true
      },
  
      success: function(data){
          if(data.connected){
      },
      error: function(a, b, c){
      }
  });
  </code></pre>
  
  <p>I see these are set in the headers:</p>
  
  <pre><code> Accept:application/json, text/javascript, */*; q=0.01
   Accept-Encoding:gzip,deflate,sdch
   Accept-Language:en-US,en;q=0.8
   Authorization:Basic bGlkerrdN1NDpTdW55ytXIwMA==
   Connection:keep-alive 
   Cookie:OBBasicAuth=fromCache; 
   ObSSOCookie=
  User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.10 Safari/537.36
   Response Headersview source
  </code></pre>
  
  <p>IS there a way in Javascript or JQuery I can get the Authorization part?</p>