jQuery – get AJAX response headers

For backward compatibility with XMLHttpRequest, a jqXHR object will
expose the following properties and methods: getAllResponseHeaders()
and
getResponseHeader().
From the $.ajax() doc : http://api.jquery.com/jQuery.ajax/

For jQuery > 1.3

success: function(res, status, xhr) { 
  alert(xhr.getResponseHeader("myHeader"));
}

Leave a Comment