Interceptador automático de jQuery com token
$.ajaxSetup({
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Token 123')
}
});
Combative Crossbill