繼instructions啓用CORS我iriscouch:虹膜啓用CORS沙發
/_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:[email protected]:6984/_restart
{"ok":true}
但沒有更多的運氣。
-
有誰成功啓用CORS他的iriscouch?
注意:CORS補丁應該已經應用於我的帳戶。
謝謝。