I am using django as web API for backend and React JS as web UI for frontend. User will sign up from web UI which will send a POST request to django to register with the user de
You are missing withCredentials: true for your post request, which means that your CSRF cookie is not sent with the request.
withCredentials: true