Discussion on: How to make a API Call to Heroku from Chrome Extension

eruizdechavez profile image
Erick Ruiz de Chavez

Looks like the problem is on your API and not on the JS code. I did a quick test on the URL visible on your screenshot and looks like your Django API has no CORS enabled.

I do not have experience with Django, but this seems like a good answer stackoverflow.com/questions/357609....

Before you enable or install anything, it would be a good idea to read a bit more about CORS to understand the problem and the solution. developer.mozilla.org/en-US/docs/W...

Thread Thread
memahesh profile image
Medam Mahesh Author

Got it.
Thanks for the link.
I understand CORS. But, I did not know how to solve the problem.
You were a lot of help. Thanks again 😊.