django - phant : No 'Access-Control-Allow-Origin' -


i trying json data phant django application everytime getting following error :

no 'access-control-allow-origin' header present on requested resource.

i have tried adding 'access-control-allow-origin' both node.js phant , django unable data.

you requesting data phant app django app. need add access-control-allow-origin header on django app.

posting how adding 'access-control-allow-origin' django app helpful answer.

you may consider using django-cors-headers. check configuration options carefully.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

sql - MySQL Custom calculate views -