Итак, я пытаюсь получить местоположение из ответа заголовка через 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);
});