I have created an API endpoint using the Django python framework that I host externally. I can access my endpoint from a browser (mydomain.com/endpoint/) and ve
mydomain.com/endpoint/
I was facing the same issue.
i looked deeper and my
endpoint url was not correct.
url
By giving axios right exact url, my api worked like charm.
axios
Hope it may help anyone