When I\'m trying to make an AJAX call from php (localhost) to django (localhost:8000), it throws the following error.
php (localhost)
django (localhost:8000)
XMLHt
I swapped my internal IP (192.168.1.x) in the place of localhost and was able to call a XMLHttpRequest on it. This should do the trick without messing with cross origin policy.