Has anyone had success working with a front-end only applications with Ember.js and consuming endpoints from an external host? If so please share your experience.
Here are a couple of options.
- Make the requests through a local proxy (just pass through).
- Use a proxy + Rails so that you can work the way Ember.js wants you to.
- Use CORS requests to get around the XSS issue.
It seems like the canonical approach to Ember.js is to use a local Rails app to serve up json to an Ember.js app. From what research my team has done, it doesn't seem like CORS is a commmon way to work with Ember.js.
EDIT:
Regarding the comment below, this is really more a question of how to use Ember-data with an external api rather than Ember.js itself.