0👍
✅
After playing around, I found that the problem was me not requiring "cors" in the backend file.
All I added was:
var cors = require('cors')
var app = express()
app.use(cors())
Source:stackexchange.com