Is there a method to read response headers in an Ajax request using the fetch method in backbone.js? Can headers be accessed if the fetch method is overridden?
var PageCollection = Backbone.Collection.extend({
url: 'http://localhost/cms?_mn=Mod_Admin&_mf=getAllPages',
model: PageModel,
fetch: function (options) {
Backbone.Collection.prototype.fetch.call(this, options);
// The code above successfully fetches the dataset
// However, how can I access and read the response headers at this point?
}
});