CORS error when using Django Restframework

I have a React frontend hosted at

My Django API backend is hosted at

The following is the settings that I have configured to allow for CORS.


Even after adding the above settings, I am getting CORS not allowed error in my frontend.
Are there some other values that are required ??

Also, I have tried to allow all origins, but still get CORS error.


Also, when opening the admin page, there are a bunch of requests made to the backend and then those requests show the status to be 301 and the page stops loading and shows some error.

Are you using django-cors-headers along with rest-framework? From the rest-docs