I added headers on the server side
res.setHeader('Access-Control-Allow-Origin','*');
res.setHeader('Access-Control-Allow-Methods',"OPIONS,GET,POST,PUT,PATCH,DELETE");
res.setHeader('Access-Control-Allow-Headers','Content-Type , Authorization');
But I still get the error on reactjs
I used fetch for send and take data.
Also I used from the header 'Access-Control-Allow-Origin':'*'
On the ractjs