UVASOMIT / metron

JavaScript convenience library and framework written in TypeScript.
MIT License
6 stars 7 forks source link

Ajax send function should handle status 401 #213

Open TomJLynch opened 3 years ago

TomJLynch commented 3 years ago

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.