Passing header information to REST Get request using RESTAdapter

You can actually do this.

$.ajaxSetup({
    headers: { 'x-my-custom-header': 'some value' }
});

This set headers for all requests.

1 Like