Zatvobor/ember-couchdb-kit

Support Cross-Origin Resource Sharing

Closed this issue · 6 comments

App.Store = DS.Store.extend
  revision: 11
  adapter: DS.RESTAdapter.create
  url: 'http://example.com/db'

Yeah. I know. Currently, an ember-couhcdb-kit (0.6/0.7.dev) points just only to the same host... Let me know your actual/expected usecase and I'll check this

It's for a case when couchdb and rails app itself are hosted on separate machines :)

Nice shot. I suppose you noticed about CORS. Thanks for request

Previously I used JSONP as CouchDB support it out of the box, but with Ember CORS is definitely preferred. Thank you.

This fixed in branch example_app_on_ember_data_beta2 for ember-data beta2

should be fixed in v0.8