From the documentation it seems that Ember-Data is claiming to support CORS out of the box:
If your JSON API runs on a different domain than the one serving your Ember app, you can change the host used to make HTTP requests.
Note that in order for this to work, you will need to be using a browser that supports CORS, and your server will need to be configured to send the correct CORS headers.
Given this comment by Pete Wagenet in this pull request, he says:
Given inconsistent browser behavior, for now I think we should just expect the user to overwrite the RESTAdapter’s ajax method. I don’t really want to add something that will only work in some browsers. If you still feel strongly about this, start a discussion on the Ember forums.
So what is the way to go? Should I overwrite the
$.ajax object in the
$.ajaxSend filter? Or cross my fingers and hope there is an Ember Way coming soon?