React app can't create mutations due to CORS errors

For the todo app without auth, it worked after I upgraded dgraph-js-http to version 20.07.0.

For the todo app with auth, the CORS errors stopped when I used the docker-compose up in which the “latest” Dgraph image was used.