I've seen that angular (1.2.17) is sending an OPTION request if we set some custom headers on another domain in ajax (with $http). I know this is some part of an RFC somewhere (no need to point that out) but I would force to send the actual request anyway because the users will be behind a 3G network somewhere in Africa (and you guess that the OPTION header will not work).
So the problem is definitely on the client side because $.ajax works and not $http. I've seen the other threads in stackoverflow on this issue, but I don't want to configure the server-side, I want to disable it on the client side in angular. (please don't suggest this).
the useXDomain option I've seen does nothing and the domainWhiteList thing does not work either. Is there any way to disable this thing entirely ? (or I will have to use jquery instead for the ajax part).