Support Cross-Origin Resource Sharing
Closed this issue · 6 comments
lessless commented
App.Store = DS.Store.extend
revision: 11
adapter: DS.RESTAdapter.create
url: 'http://example.com/db'
Zatvobor commented
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
lessless commented
It's for a case when couchdb and rails app itself are hosted on separate machines :)
Zatvobor commented
Nice shot. I suppose you noticed about CORS. Thanks for request
lessless commented
Previously I used JSONP as CouchDB support it out of the box, but with Ember CORS is definitely preferred. Thank you.
OpakAlex commented
This fixed in branch example_app_on_ember_data_beta2
for ember-data beta2
Zatvobor commented
should be fixed in v0.8