(#2484) - fix readOnly replication for CORS/40* Currently we only mark a source database as read-only if it returns a 401. Really we should do it for any 40*, and also in the case of CORS the error status is a deceptive 0, so this doesn't help. Ugly hack, but I verified manually that using a CouchDB that only accepts CORS methods GET and HEAD, I can now replicate in Safari 7, IE 11, Chrome 36, and Firefox 30.
PouchDB was written to help web developers build applications that work as well offline as well as they do online, applications save data locally so the user can use all the features of an app even while offline and synchronise the data between clients so they have up to date data wherever they go.
PouchDB is a free open source project, written in Javascript by these wonderful contributors and inspired by Apache CouchDB.
To get started using PouchDB check out our Documentation and the API Documentation.
If you want to get involved then check out the contributing guide
var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 66 }); db.changes().on('change', function() { console.log('Ch-Ch-Changes'); }); db.replicate.to('http://example.com/mydb');