I am creating an Angularjs single page app with SQL, Angularjs, Node.js, and Express, which has login using passport and basic auth. When a user logs in they are able to access routes to edit items in the database. This all works correctly, the problem is that the cookies are only sent as long as the browser doesn't refresh. I am creating an Angularjs single page app with