Authentication is returning “401 (Unauthorized)” when it shouldn't
问题 I am setting up an authentication functionality for my first time and am getting some unexpected results after a user has been logged in. A colleague has given me an application with working authentication to model my application after and it seems like everything I have done is correct. I am using AngularJS on the front-end, SailsJS back-end framework, and PassportJS authentication middleware. My source is (for now) stored publicly... the backend API is on Github here (API Github) and the