I use this package and it didn't work (https://github.com/barryvdh/laravel-cors)
addSMS() {
axios.post('https://smsmisr.com/api/webapi', {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST, GET, PUT, OPTIONS, DELETE',
'Access-Control-Allow-Headers': 'Access-Control-Allow-Methods, Access-Control-Allow-Origin, Origin, Accept, Content-Type',
'Content-Type': 'application/json',
'Accept': 'application/json'
},
username: '*****',
passowrd: '****',
etc: '',
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
}
please tell me how to fix it it's cors not working for me.

