Sending POST request to DRF from React locally works fine but getting 404 error when React is on server

I have a react app for frontend and Django for backend. I am currently running the django app in the remote server and if I do POST request on it from Postman or from localhost it works fine. But when I deployed react app on the server and do a POST request, I get 404 error. Does anyone knows why that happens?



Read more here: https://stackoverflow.com/questions/68477809/sending-post-request-to-drf-from-react-locally-works-fine-but-getting-404-error

Content Attribution

This content was originally published by neostar at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: