I am making Ajax request with jQuery to Echonest, as you might know Echonest returns some headers to see the rate limit. I tried everything I know to read headers but I couldn't get any header.
This is my code:
$.ajaxSetup({traditional:true, cache: false});
url = 'http://developer.echonest.com/api/v4/song/profile?api_key=' + api_key + '&callback=?';
var req = $.getJSON(url,
{
id : songID,
format: 'jsonp',
bucket:['audio_summary']
}).done(function(data, status, resp){
console.log(resp.getAllResponseHeaders())
console.log(resp.getResponseHeader('X-Ratelimit-Limit'))
});
And this is the screenshot of the response:

I am trying to read X-Ratelimit-Limit
Thanks