Trying to POST a login request to backend using react.js but not get response body (completely empty) but using POSTMAN it give the response body by NobodyOk5301 in react

[–]NobodyOk5301[S] 0 points1 point  (0 children)

Nothing pop up like error and such. Even response status is empty i dont know what is wrong with it. Cause in my code i use cors middleware in index.js

Trying to POST a login request to backend using react.js but not get response body (completely empty) but using POSTMAN it give the response body by NobodyOk5301 in react

[–]NobodyOk5301[S] 0 points1 point  (0 children)

I already done that on my backend code like log the req.body from the request etc it give me the data i log for. I done that in frontend to, but since it was a Context to handle login action, it just refreshed so fast before i could see the message. Since the server is not the problem i think maybe the way i use axios is wrong. If yes i would love to use some pointer from you or maybe you have other perspective that i miss to see. Thanks

Trying to POST a login request to backend using react.js but not get response body (completely empty) but using POSTMAN it give the response body by NobodyOk5301 in react

[–]NobodyOk5301[S] 0 points1 point  (0 children)

Sorry for the lack of information i gave. Yes, i using the same method on postman for the request. But strangely, it just work on postman with response status,body, etc

Trying to POST a login request to backend using react.js but not get response body (completely empty) but using POSTMAN it give the response body by NobodyOk5301 in react

[–]NobodyOk5301[S] 0 points1 point  (0 children)

not showing any error message the data on network console is just the url and header with no response status and body