Thank you for your reply Filipe The question behind was: How to implement a cross domain communication between a phonegap App and a django web project
You're right I forgot the django site for the server-side headers in my mind. I'll give it a try with the plugin and test how far i come with it. Thanx again. Am Donnerstag, 12. März 2015 00:29:56 UTC+1 schrieb Filipe Ximenes: > > 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/3316570b-4461-4bf1-968b-3f1ec9ebdee8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.