0👍
I’m not used to working with django but I do use flask with CORS.
Here’s a link to another thread which might help : How can I enable CORS on Django REST Framework
0👍
I had the same problem. I was using django-cors-headers
and followed their instructions to the T.
The cause of my issue was on the client-side. The server URL I used, namely localhost:8000
, didn’t contain the protocol.
When I changed it to http://localhost:8000
it worked.
Source:stackexchange.com