mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Adding withCredentials to IHttpProviderDefaults
This commit is contained in:
5
angularjs/angular.d.ts
vendored
5
angularjs/angular.d.ts
vendored
@@ -1277,9 +1277,14 @@ declare module ng {
|
||||
then<TResult>(successCallback: (response: IHttpPromiseCallbackArg<T>) => TResult, errorCallback?: (response: IHttpPromiseCallbackArg<any>) => any): IPromise<TResult>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Object that controls the defaults for $http provider
|
||||
* https://docs.angularjs.org/api/ng/service/$http#defaults
|
||||
*/
|
||||
interface IHttpProviderDefaults {
|
||||
xsrfCookieName?: string;
|
||||
xsrfHeaderName?: string;
|
||||
withCredentials?: boolean;
|
||||
headers?: {
|
||||
common?: any;
|
||||
post?: any;
|
||||
|
||||
Reference in New Issue
Block a user