{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3543","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3543/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3543/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3543/events","html_url":"https://github.com/pouchdb/pouchdb/issues/3543","id":57841283,"number":3543,"title":"Headers not getting set in sync and replications in v3.3.1","user":{"login":"alanquigley","id":189046,"avatar_url":"https://avatars.githubusercontent.com/u/189046?v=3","gravatar_id":"","url":"https://api.github.com/users/alanquigley","html_url":"https://github.com/alanquigley","followers_url":"https://api.github.com/users/alanquigley/followers","following_url":"https://api.github.com/users/alanquigley/following{/other_user}","gists_url":"https://api.github.com/users/alanquigley/gists{/gist_id}","starred_url":"https://api.github.com/users/alanquigley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanquigley/subscriptions","organizations_url":"https://api.github.com/users/alanquigley/orgs","repos_url":"https://api.github.com/users/alanquigley/repos","events_url":"https://api.github.com/users/alanquigley/events{/privacy}","received_events_url":"https://api.github.com/users/alanquigley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-02-16T19:14:12Z","updated_at":"2015-02-22T15:58:56Z","closed_at":null,"body":"I'm setting the following options object\r\n\r\n      var options = {\r\n        ajax: {\r\n          headers: {\r\n             Authorisation : 'my token value'\r\n          }\r\n        }\r\n      }; \r\n\r\nand passing it into the PouchDB constructor.\r\n\r\nthis.db = new PouchDB(_id, options);\r\n\r\nBut my sync and replication requests don't contain the header.\r\n"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/75441930","html_url":"https://github.com/pouchdb/pouchdb/issues/3543#issuecomment-75441930","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3543","id":75441930,"user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T15:58:56Z","updated_at":"2015-02-22T15:58:56Z","body":"OK, I see what's going on. After fe43de0, only filter *function*s are accepted, i.e. all filtering is client-side. So you can pass in a JavaScript function as a filter and that will work, but passing in a `ddoc/view` name will not longer work."}}