So I hit this error, when I was trying to send data to the back end using React. From what I learnt I need to allow the communication on the back-end and in the .htacc
.htacc
There's a node package called cors which makes it very easy.
$npm install cors
npm install cors
const cors = require('cors') app.use(cors())
You don't need any config to allow all.
See the Github repo for more info: https://github.com/expressjs/cors