# Passing header information to REST Get request using RESTAdapter

**URL:** <https://discuss.emberjs.com/t/passing-header-information-to-rest-get-request-using-restadapter/4220>\
**Category:** Ember Data\
**Created:** [February 20, 2014, 12:53pm UTC](https://discuss.emberjs.com/t/passing-header-information-to-rest-get-request-using-restadapter/4220 "2014-02-20T12:53:24Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![brendon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/brendon/32/9560_2.png) [@brendon](https://discuss.emberjs.com/u/brendon)\
**Post date:** [September 18, 2014, 4:12am UTC](https://discuss.emberjs.com/t/passing-header-information-to-rest-get-request-using-restadapter/4220/17 "2014-09-18T04:12:50Z")

</div>

This just does not seem to be working. I’ve tried the examples that were given in the [documentation](http://emberjs.com/api/data/classes/DS.RESTAdapter.html#toc_headers-customization) to no avail. If I hard-code it without the function, they are inserted. If I try to make it dynamic - the code inside never executes (verified by logging to the console). Even if it isn’t dynamic like the examples, they don’t get added to the headers:

```
App.ApplicationAdapter = DS.RESTAdapter.extend({
	headers: function(){
		return {
			Authorization: 'CuzISaySo',
			Project: 'MyAwesomeProject',
		};
	}
});

```

I have validated that my CORS header is set to accept them. Not sure what else to do; seems like a bug due to the delta in behavior between the documentation and my real-world experience.

```
Ember : 1.7.0 
Ember Data : 1.0.0-beta.5 
Handlebars : 1.3.0
jQuery : 2.0.3 

```

---

_[View the full topic](https://discuss.emberjs.com/t/passing-header-information-to-rest-get-request-using-restadapter/4220)._
