feat(common): on-by-default XSRF support in HttpClient (#18108)

Fixes #18100
This commit is contained in:
Alex Rickabaugh
2017-07-13 17:22:02 -07:00
committed by Igor Minar
parent 3d85f72652
commit dd04f09483
11 changed files with 328 additions and 31 deletions

View File

@ -1246,6 +1246,20 @@ export declare class HttpXhrBackend implements HttpBackend {
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
}
/** @experimental */
export declare class HttpXsrfModule {
static disable(): ModuleWithProviders;
static withOptions(options?: {
cookieName?: string;
headerName?: string;
}): ModuleWithProviders;
}
/** @experimental */
export declare abstract class HttpXsrfTokenExtractor {
abstract getToken(): string | null;
}
/** @experimental */
export declare class JsonpClientBackend implements HttpBackend {
constructor(callbackMap: JsonpCallbackContext, document: any);