title: How to get Response headers in AJAX
body: <p>I am using the following code for an AJAX call</p>
  
  <pre><code> $.ajax({
          type: "POST",
          url: "http://******/cxf/view/*****",
          data: {*****},
          headers: {*****},
          success: function (dt, status, request) {
              console.log(request.getAllResponseHeaders());
  
          },
          error: function (jqXHR, status) {
  
          }
      });
  </code></pre>
  
  <p>This is printing only content-type. In the developer console i can see number of headers in  the response. How can i get those headers in AJAX</p>
  
  <p><a href="https://i.stack.imgur.com/vgCA3.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vgCA3.jpg" alt="enter image description here"></a></p>