score:1

it seems that needs client request headers:

    first = async  () =>  {
     const data = {
            firstname:'abcdef',lastname:'defghi'

    };
    const resp = await axios({
            method:'post',
            url: 'url here' ,
            data: data,
            headers: {
               'allow-control-allow-origin': 'domain permitted here',
               'authorization': 'authorization here'
               //eg: 'aurhorization': 'basic: ' + window.btoa(generatedcredentials);
            }
        }
    );
    console.log(resp);

Related Query

More Query from same tag