Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only redirect to login page on 401 (not 403) #6

Open
DavidMikeSimon opened this issue Apr 8, 2014 · 0 comments
Open

Only redirect to login page on 401 (not 403) #6

DavidMikeSimon opened this issue Apr 8, 2014 · 0 comments

Comments

@DavidMikeSimon
Copy link
Contributor

According to the HTTP spec, error code 403 indicates a security refusal that can't be dealt with by logging in. Therefore, secure-ng-resource should (perhaps optionally?) only attempt to redirect the user to the login page if it gets a 401.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant