UVASOMIT/metron

Ajax send function should handle status 401

TomJLynch opened this issue · 0 comments

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.