I am trying to use CouchDB
as a back-end for my application. I tried to install couchDB on my windows OS machine. It works fine.
When i tried to run this example
after creating the db on "Projects", the console displays an error.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fiddle.jshell.net' is therefore not allowed access. The response had HTTP status code 405.
I tried to do fix it by this suggestion, how to add cors in couchDB
, but i don't find [cors] section
I manually created [cors] section, that too did not work.
UPDATE: I am using the latest version 1.6.1
您需要在COUCHDB管理端启用CORS并允许所有站点
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.