I am using the following code for an AJAX call
 $.ajax({
        type: "POST",
        url: "http://******/cxf/view/*****",
        data: {*****},
        headers: {*****},
        success: function (dt, status, request) {
            console.log(request.getAllResponseHeaders());
        },
        error: function (jqXHR, status) {
        }
    });
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

 
     
     
    
