how to add cors in couchDB — No 'Access-Control-Allow-Origin' header is present on the requested resource
问题 I am trying to create a html file which synchronize data from a pouchDb to couchDb ..but iam getting the following error in chrome console. Uncaught TypeError: Cannot call method 'addEventListener' of null OPTIONS http://localhost:5984/todos/ 405 (Method Not Allowed) OPTIONS http://localhost:5984/todos/ No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. XMLHttpRequest cannot load http://localhost:5984