/_config/httpd/cors
调成true
- 添加部分:
/_config/cors/my.iriscouch.com:6984
设置为"http://localhost http://myapp.com"
然后测试它:
$ 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
但响应中没有Access-Control-Allow-Origin
标题...
还尝试重新启动服务器:
$ curl -XPOST -HContent-Type:application/json https://me:XXXX@my.iriscouch.com:6984/_restart
{"ok":true}
但没有更多的运气...
--
有没有人成功为他的 iriscouch 启用 CORS?
注意:我的帐户应该已经应用了 CORS 补丁。
谢谢你。