Not 100% sure I understood your question, but it seems that you are trying
to overcome the CORS only from the frontend side when you should be
treating it from the Django side.
Could you take a look on this package:
https://github.com/ottoyiu/django-cors-headers

If it suits your needs, a good idea is to have your API endpoints beginning
with something like "/api/{whatever you want}" and set:

CORS_ORIGIN_ALLOW_ALL = True

CORS_URLS_REGEX = r'^/api/.*$'
-- 


*Filipe Ximenes*+55 (81) 8245-9204

*Vinta Software Studio*http://www.vinta.com.br

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA-QWB3EOZ0_snd7r5TK%2B8oJVJ0ZG1AbV81b2Qp%2B_4uPD30AkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to