A core principle of Single Page Apps is things that used to live on the server now live in the browser. One of those responsibilities is managing redirections. For example when you make an AJAX call to a secure service and without a valid authorization token. The service should return a 401 status code. When receiving a 401 status code the application should redirect the user to the login address.


Who Upvoted this Story

What is Pligg?

Pligg is an open source content management system that lets you easily create your own user-powered website.

Latest Comments