I am making a simple login using Node.js with CORS and Angular.js.
That is --- client.example.com
is making a POST too api.example.com/login
where on success a session cookie is returned too client.example.com
and can gain access too a GET service like api.example.com/secret
protected by the session cookie.
Making GET requests that aren't protected by a session cookie isn't a problem.
Ultimately, the goal here is too authenticate a client side app to a REST api using CORS with a local stradegy --- i.e. username & password --- even if the convention above isnt possible.
I can not find a working implimentation to learn from anywhere --- point me in the right direction?
Bonus: Show a working example.