I am not getting Set-Cookie value from response header. Value throw null
my code below
$.ajax({
    url: ip_add + '/' + reqUrl,
    crossDomain: true,
    type: "POST",
    dataType: "json",
    data: req_data,
    xhrFields: {
        withCredentials: true
    },
    beforeSend: function(xhr) {
        xhr.setRequestHeader("X-CSRFToken", csrftoken);
    },
    success: function (res, textStatus, XMLHttpRequest) {      
        var cookietoSet = XMLHttpRequest.getResponseHeader('Set-Cookie');
        alert(cookietoSet);
    },
    cache: false, 
});
