I'm connecting to a Nodejs REST server locally (cross domain allowed). Authentication is being managed using a session cookie module
. Using simple HTML and AJAX calls everything works great. From Enyo though, I can see the set-cookie coming in post login, but subsequent requests are not including the cookie. Doesn't look like the cookie is getting created (Firefox or Chrome). Also tried running Chrome with
but no difference, still not seeing the cookie.
Various threads here discuss issues with Enyo and trying to access cookies and local storage. But I'm serving up the Enyo from a local server, shouldn't the browser take care of the cookie for me?
If not, what's the solution. I already tried turning off the httponly flag, but the
comes up empty.
Follow up question would be what's the generic solution that would work running as a packaged app or served from a web server? Do I have to use something other than cookies?