cordova

Access-Control-Allow-Origin in Django app

Access-Control-Allow-Origin in Django app Question: I’m developing a Phonegap app for my Django based app, but when trying to make Ajax calls I get this error: XMLHttpRequest cannot load http://domain.herokuapp.com/getcsrf/?tags=jquery%2Cjavascript&tagmode=any&format=json. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access. How can I make it so my Django app …

Total answers: 5