title: CouchDB cookie authentication does not work with jQuery
body: <p>I have a CouchDB server on the localhost (<code>127.0.0.1</code>) with CORS enabled and I am using the couch jQuery library to access it from a page served by an Apache server. I try to authenticate as follows:</p>
  
  <pre><code>$.couch.urlPrefix = "http://127.0.0.1:5984";    
      $.couch.login({
      name:     "user1",
      password: "user1password",                          
      success: function(data) {    
          $.couch.session({
              success: function(data) {
                  console.log(JSON.stringify(data));             
               }                 
           });    
       }
   });
  </code></pre>
  
  <p><code>$.couch.login()$</code> works (I receive an <code>AuthSession</code> cookie and the response <code>{"ok":true,"name":"user1","roles":["operator"]}</code>). Issue is: any subsequent  request that requires the user to be logged in fails, because the cookie is not being sent by the browser (Chrome/Firefox, also on different machines). Obviously then, response to <code>$.couch.session()</code> is as if no user is logged in: <code>{"ok":true,"userCtx":{"name":null,"roles":[]},"info":{"authentication_db":"_users","authentication_handlers":["oauth","cookie","default"]}}</code>. Thanks!</p>