$.ajax({
url: ‘/m_tables’,
beforeSend: function (xhr) {
xhr.setRequestHeader(“authorization”, ‘Bearer ‘ + access_token);
},
data: {
seasonName: “2018/2019”
},
xhrFields: {
“withCredentials”: true
},
crossDomain: true,
success: function (obj) {
console.log(obj);
},
error: function(){
console.log(‘failure’);
}
});