pouchdb / add-cors-to-couchdb

CLI to add a good default CORS configuration to CouchDB
Apache License 2.0
132 stars 18 forks source link

will this work on cloudant? #1

Closed calvinmetcalf closed 9 years ago

SinanGabel commented 9 years ago

Hi! I believe not. At Cloudant one does something like this instead:

curl https://username:password@user.cloudant.com/_api/v2/user/config/cors -X PUT -H 'Content-Type: application/json' -d ' { "enable_cors": true, "allow_credentials": true, "origins": [ "https://users_site.com", "https://www.users_site.com" ] }'

nolanlawson commented 9 years ago

Correct, Cloudant has a different CORS setup.