worked out cors cookie sessions for couchdb