Итак, я пытаюсь получить местоположение из ответа заголовка с помощью jQuery get. Я пытался использовать getResponseHeader ('Location' )и getAllResponseHeaders (), но оба они возвращают значение null.
Вот мой текущий код
$(document).ready(function(){
var geturl;
geturl = $.ajax({
type: "GET",
url: 'http://searchlight.cluen.com/E5/Login.aspx?URLKey=uzr7ncj8)',
});
var locationResponse = geturl.getResponseHeader('Location');
console.log(locationResponse);
});