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

Ajax send function should handle status 401 #213

Open
TomJLynch opened this issue May 28, 2021 · 0 comments
Open

Ajax send function should handle status 401 #213

TomJLynch opened this issue May 28, 2021 · 0 comments

Comments

@TomJLynch
Copy link
Member

The .net web api returns 401 if an unauthorized user tries to execute a web service method. Metron does not handle 401.

On line 202 of metron.ts, add 401 to the list of conditions.
if (request.status === 404 || request.status === 405 || request.status === 500) {

This fix is for .net mvc apps using version 2.x.x of metron. We no longer have a branch for version 2 and need to create one again.

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