title: jquery: unable to print ajax response header (Jquery 1.7.1)
body: <pre><code>  $.ajax({
                  async:false,
                  type: 'POST',
                  url: itemURL,
                  success: function(data,status,jqXHR) {
                      responseObj  = data;
                      console.log('success function resp');
                      console.log(jqXHR.getAllResponseHeaders());
                  },
                  error: function(data){
                      responseObj = data;
                  },
                  data:item,
                  dataType: "json",
  
      });
  </code></pre>
  
  <p>Here's my code; i am unable to print response headers; am i missing anything? all that prints out is empty string.</p>
  
  <p>Tried using getResponseHeader("Location"), that's not working either; I am trying to get "Location" header that's being returned for the AJAX call.</p>
  
  <p>However firbeug shows all response headers including "Location" which I am after.</p>
  
  <p>I am using Jquery 1.7.1</p>