I created a api
using passport do laravel 5.3
. It works as follows: angular 2
sends credentials to laravel
, verification is performed, laravel
returns token
. It's all working round.
Something that is making me unhappy is when the credentials are not properly entered. Browser throws an error in the console. I'm already handling such a bug and introducing it to the user. But I wanted this error not to appear on the console. see:
Theerroris:
POST link 401 (Unauthorized)
I gave a search in google and from what I saw some people talking it has nothing to do with angular 2
. This would be related to laravel
.
Anyway, does anyone have an idea how to remove this error? I find it inelegant.