# Problem using custom REST adapter for one of the app models

**URL:** https://discuss.emberjs.com/t/problem-using-custom-rest-adapter-for-one-of-the-app-models/4240
**Category:** Ember Data
**Created:** [February 22, 2014, 11:33pm UTC](https://discuss.emberjs.com/t/problem-using-custom-rest-adapter-for-one-of-the-app-models/4240 "2014-02-22T23:33:29Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jamalsoueidan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jamalsoueidan/32/234_2.png) [@jamalsoueidan](https://discuss.emberjs.com/u/jamalsoueidan)
#### Post date: [February 23, 2014, 1:53pm UTC](https://discuss.emberjs.com/t/problem-using-custom-rest-adapter-for-one-of-the-app-models/4240/2 "2014-02-23T13:53:35Z")

</div>

You can use jQuery to set global headers after you logged in.

> [@Passing header information to REST Get request using RESTAdapter](http://discuss.emberjs.com/t/passing-header-information-to-rest-get-request-using-restadapter/4220/2):
>
> You can actually do this. $.ajaxSetup({ headers: { 'x-my-custom-header': 'some value' } }); This set headers for all requests.

or ember way.

> [@Passing header information to REST Get request using RESTAdapter](http://discuss.emberjs.com/t/passing-header-information-to-rest-get-request-using-restadapter/4220/3):
>
> or you can do it ember way. DS.RESTAdapter.reopen({ headers: { "Accept": "application/json, text/javascript; q=0.01" } });

---

_[View the full topic](https://discuss.emberjs.com/t/problem-using-custom-rest-adapter-for-one-of-the-app-models/4240)._
