私の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:XXXX@my.iriscouch.com:6984/_restart
{"ok":true}
しかし、もう運はありません...
--
iriscouch で CORS を有効にした人はいますか?
注: CORS パッチは、私のアカウントに既に適用されているはずです。
ありがとうございました。