axios get 404 but postman fine

Viewed 11

I am new to MERN tech , I have a issue when get a single user by using name and password , when ienter image description here make axios get request , it return such 404 error [enter image description here]

but when i make such request in postman, it will give the result , enter image description here

this is the code where i try to get the result enter image description here

I can know that the email and password is shown as undefined in the server , that is why no record is retrieved

I dont find anything wrong about this get code ,

appreciate your help !

0 Answers
Related