I was giving an api to connect to react and I tested the api with posting man it was working fine but when I send post using axios in react I get cors error
How do I resolve this issue
const handleSubmit = (e) => {
e.preventDefault();
axios.get("https://etsea.herokuapp.com/category/", {
"Content-Type": "application/json"
}
)
.then(res => {
console.log(res.data);
})
.catch(err => {
console.log(err)
})
} The backend was developed with python.
I tried removing the trailing slash but it does not work if the trailing slash is removed both in postman or in react