# Adaptor problem

**URL:** <https://discuss.emberjs.com/t/adaptor-problem/10949>\
**Category:** Ember Data\
**Created:** [June 16, 2016, 12:51pm UTC](https://discuss.emberjs.com/t/adaptor-problem/10949 "2016-06-16T12:51:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Stock](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@Frank\_Stock](https://discuss.emberjs.com/u/Frank_Stock)\
**Post date:** [June 16, 2016, 12:51pm UTC](https://discuss.emberjs.com/t/adaptor-problem/10949/1 "2016-06-16T12:51:40Z")

</div>

I am trying to connect to LinkRest, a Jetty-RestServer. I am connecting with a proxy, but I still get: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. When adding a header in the application.js (adaptors) I can see that I get ‘OPTIONS //127…’ and not ‘GET //127…’ How can I solve this? ember-cli: 2.6.1 node: 4.4.4 os: darwin x64

---

<div class="post-metadata">

**Author:** ![skaterdav85](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/skaterdav85/32/18291_2.png) [@skaterdav85](https://discuss.emberjs.com/u/skaterdav85)\
**Post date:** [June 21, 2016, 5:24am UTC](https://discuss.emberjs.com/t/adaptor-problem/10949/2 "2016-06-21T05:24:56Z")

</div>

> [@Frank\_Stock](#):
>
> on the requested resource.

The backend isn’t sending the `Access-Control-Allow-Origin` header. I think I ran into something like this one time where Ember Data made the preflight OPTIONS request, which my backend didn’t support. The fix for me was to make sure my backend supported OPTIONS requests and sent that `Access-Control-Allow-Origin` header.

---

<div class="post-metadata">

**Author:** ![Frank\_Stock](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@Frank\_Stock](https://discuss.emberjs.com/u/Frank_Stock)\
**Post date:** [June 21, 2016, 6:50am UTC](https://discuss.emberjs.com/t/adaptor-problem/10949/3 "2016-06-21T06:50:01Z")

</div>

Thank you. That’s it. I have read a good explanation about the subject, now I understand the preflight OPTION.
