lostinplace
lostinplace

Reputation: 1518

How can I do cross-domain put/post requests on iris couch?

see for example http://jsfiddle.net/lostinplace/fxZNx/

apparently enabling jsonp for cross-domain access turns all requests to get, but I have some cross-domain requests that I want to use to manipulate data (not necessarily building design docs)

Upvotes: 2

Views: 1132

Answers (1)

JasonSmith
JasonSmith

Reputation: 73732

Cross-origin resource sharing (CORS) is not officially supported in Apache CouchDB, however Iris Couch can enable my CORS patch, which I described in a similar question: Any way to limit access to CouchDB view when JSONP is enabled?

Just email [email protected]. The only thing to remember is that this is a third-party patch and so the API or the configuration system, etc. might change in the future.

But CORS is pretty awesome and worthwhile in my opinion.

Upvotes: 2

Related Questions