0

I have applied JWT authentication on .net successfully & the result is quite fine when I use postman enter image description here

but when I called it from angular using the same Url it shows an error because it's not hitting the Actionresult of web API from angular. Following are the code Please help me out.gu enter image description here

2
  • 2
    Please don't post code as images. And you haven't shown the Angular implementation yet. Commented Apr 28, 2020 at 13:55
  • when I called it from angular using the same Url it shows an error Please share the code that you are using to make request on angular client, and please check the status code of the request on browser network tab. Commented Apr 29, 2020 at 5:50

1 Answer 1

1

That should be url in your angular app : http://localhost/59912/api/account/login. Currently you are using end point http://localhost/59912/login which would not match and also does not match what you are using in postman.

Sign up to request clarification or add additional context in comments.

1 Comment

I had used the same URL localhost/59912/api/account/Login in my angular app the problem is I was expecting the Email or Password from the angular app but unfortunately I was passing Email or UserPassword, as Password or UserPassword is not matching the action method is not triggered now the problem is solved. by the way thanks for the reply.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.