Adding withCredentials to IHttpProviderDefaults

This commit is contained in:
Stanley Goldman
2014-12-24 12:48:29 -05:00
parent dd4398796d
commit b1f314ebbc

View File

@@ -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;