Hi I'm trying to get the session data using the CouchDB jQuery API from a web application, but the userCtx.name variable is always null. The web application runs on a different port to CouchDB.
Authentication with couchdb via Javascript is working fine; I'm using the CouchDB-XO_Auth plugin <https://github.com/ocastalabs/CouchDB-XO_Auth>. Once the user is logged in via the CouchDB-XO_auth plugin, they show up as logged in when requesting the session: http://127.0.0.1:5984/_session/ {"ok":true,"userCtx":{"name":"awesomeuser","roles":[]},"info":{"authentication_db":"_users","authentication_handlers":["oauth","cookie","default"],"authenticated":"cookie"}} But if I request the session from my web application I get the following data: {"ok":true,"userCtx":{"name":"null","roles":["_admin"]},"info":{"authentication_db":"_users","authentication_handlers":["oauth","cookie","default"],"authenticated":"default"}} Does anyone have any ideas what could be going wrong? E.g. some cors related settings that stops you from being able to grab the session cookie from another domain? Thanks for your help Jamie
