Zatvobor / ember-couchdb-kit

An Ember.js adapter for Apache CouchDB
MIT License
43 stars 13 forks source link

Support Cross-Origin Resource Sharing #65

Closed lessless closed 11 years ago

lessless commented 11 years ago
App.Store = DS.Store.extend
  revision: 11
  adapter: DS.RESTAdapter.create
  url: 'http://example.com/db'
Zatvobor commented 11 years ago

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 11 years ago

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

Zatvobor commented 11 years ago

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

lessless commented 11 years ago

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

OpakAlex commented 11 years ago

This fixed in branch example_app_on_ember_data_beta2 for ember-data beta2

Zatvobor commented 11 years ago

should be fixed in v0.8