http://127.0.0.1:8000/api/task/$%7Bid%7D/ 404 (Not Found) is the response, please take note that all CORS settiings has been checked unqustionable times below is the react and axios code
const handleDelete = async (id) => { try{ await axios.delete("http://127.0.0.1:8000/api/task/${id}/") } catch (error) { console.log(error); } }
delete button
<span className='text-xl cursor-pointer'> <MdDeleteOutline onClick={ () => handleDelete(todoItem.id)} /></span>