Following the instructions to enable CORS for my iriscouch :
/_config/httpd/cors set to true- Add section:
/_config/cors/my.iriscouch.com:6984 set to "http://localhost http://myapp.com"
Then check it out:
$ curl -I https://my.iriscouch.com:6984/ HTTP/1.1 200 OK Server: CouchDB/1.2.0 (Erlang OTP/R15B) Date: Tue, 02 Oct 2012 10:49:18 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 40 Cache-Control: must-revalidate
but no Access-Control-Allow-Origin in the answer ...
Also tried restarting the server:
$ curl -XPOST -HContent-Type:application/json https://me: XXXX@my.iriscouch.com :6984/_restart {"ok":true}
But no longer luck ...
-
Has anyone successfully resolved CORS for their toffee?
Note. The CORS patch should already be applied to my account.
Thanks.
source share