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 -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -