CORS error while accessing API in react app

I’m trying to acess write.as Authenticate API in a react app I get CORS error in localhost:3000.


const data =JSON.stringify({
     "alias": "username",
      "pass": "pass"
  }) 

const config = {
    method: 'post',
    url: 'https://write.as/api/auth/login',
    headers: { 
        'Content-Type': 'application/json', 
    },
   data : data
}
const fetchData = async() => {
    const res = await axios(config)
    console.log(res)
}