CORS Issue with django, cordova, ionic and angular.js
<p>I use the django cors headers plugin to handle all my issues with cross origin access.</p>

<p>We implement a webapp with angular, cordova and ionic which should get access to an endpoint of the django backend.</p>

<p>The backend is running on a debian server and I set <code>CORS_ORIGIN_WHITELIST</code> to <code>("our_web_dev_server_ip", "our_web_prod_server_ip")</code>.</p>

<p>When I try to call a get to my endpoint from localhost it gives me a cross origin error.</p>

<p>If I set <code>CORS_ORIGIN_ALLOW_ALL</code> to <code>True</code> it works flawlessly.
When I check my django logs, I can see, that the request IP was the IP of the web dev server.</p>

<p>So why is the request failing when I added this ip to the whitelist in the settings? Any ideas?</p>