You can actually do this.
$.ajaxSetup({
headers: { 'x-my-custom-header': 'some value' }
});
This set headers for all requests.
You can actually do this.
$.ajaxSetup({
headers: { 'x-my-custom-header': 'some value' }
});
This set headers for all requests.