12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
$(function () {
|
|
$.ajaxSetup({
|
|
beforeSend: function (xhr) {
|
|
xhr.setRequestHeader("Authorization", 'Bearer ' + localStorage.getItem('JWT-Authorization'));
|
|
},
|
|
xhrFields: {
|
|
withCredentials: true
|
|
},
|
|
complete: function (XMLHttpRequest, status) {
|
|
},
|
|
})
|
|
}); |