What's the best way to insert a base64 image to MySQL database via cors? (MySQL+Express+React+Node stack)

I am capturing a base64 image into React state and would like to insert it to mySQL database so i can utilise this as the profile picture later on. I am currently using fetch to insert data within the MERN stack (MySQL+Express+React+Node) but it generates 400 bad request when I try insert the image with {mode : 'no-cors'} and header missing error when not using 'no-cors'.