switching to passportjs-http digest auth

there was a problem while using passportjs-local with cors enabled, I
was unable to maintain session across different origins.
adding CORS config