Javascript – how to solve CORS error in react and django
i am trying to creat log in app using Django and react . my js : const client = axios.create({ baseURL: "http://127.0.0.1:8000"}); //my submitRegistration function function submitRegistration(e) { e.preventDefault(); client.post( //every time I got cors error here// "/api/register", { email:…