angular.js/test/ng
Rado Kirov 3a75b1124d fix($http): remove 'X-Requested-With' from header defaults
X-Requested-With header is rarely used in practice and by using
it all the time we are triggering preflight checks for crossdomain
requests.

We could try detecting if we are doing CORS requests or not, but
it doesn't look like it's worth the trouble.

BREAKING CHANGE: X-Requested-With header is not set by $http service
any more. If anyone actually uses this header it's quite easy to add
it back via:

```
myAppModule.config(['$httpProvider', function($httpProvider) {
    $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest';
}]);
```

Closes #1004
2012-11-26 23:36:40 +01:00
..
directive fix(ngRepeat): support mostly-stable repeating for primitives 2012-11-26 20:36:53 +01:00
filter fix(currency): Handle not-quite-zero values 2012-10-26 08:51:28 -07:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
browserSpecs.js fix(browser): prevent ie from getting into redirect loop 2012-06-22 10:21:31 -07:00
cacheFactorySpec.js feat($cacheFactory): cache.put now returns the added value 2012-11-25 00:01:34 +01:00
compileSpec.js fix($compile): prevent double attr interpolation w/ templateUrl 2012-10-29 17:46:44 -07:00
controllerSpec.js chore(controller): allow setting map of controllers 2012-05-04 15:50:37 -07:00
documentSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
exceptionHandlerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
httpBackendSpec.js feat($http): support reponseType 2012-08-10 16:17:59 -07:00
httpSpec.js fix($http): remove 'X-Requested-With' from header defaults 2012-11-26 23:36:40 +01:00
interpolateSpec.js fix($parser): string concatination with undefined model 2012-09-06 16:06:21 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js fix($location): reset $location.$$replace with every watch call 2012-11-26 23:21:02 +01:00
logSpec.js feat($sniffer): auto detect CSP mode 2012-08-10 14:53:53 -07:00
parseSpec.js fix($parse): support methods on falsy primitive types 2012-05-05 03:30:19 +02:00
qSpec.js fix($q): $q.reject should forward callbacks if missing 2012-04-02 10:14:04 -07:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js fix(Scope): allow removing a listener during event 2012-11-25 11:39:54 +01:00
routeParamsSpec.js feat($route): allow chaining of whens and otherwise 2012-04-04 16:10:44 -07:00
routeSpec.js fix($location): reset $location.$$replace with every watch call 2012-11-26 23:21:02 +01:00
snifferSpec.js fix(CSP): update to the latest CSP api 2012-11-15 01:46:58 +01:00
timeoutSpec.js fix($timeout): allow calling $timeout.cancel() with undefined 2012-06-04 17:43:14 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00