feat(common): on-by-default XSRF support in HttpClient (#18108)
Fixes #18100
This commit is contained in:

committed by
Igor Minar

parent
3d85f72652
commit
dd04f09483
14
tools/public_api_guard/common/http.d.ts
vendored
14
tools/public_api_guard/common/http.d.ts
vendored
@ -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);
|
||||
|
Reference in New Issue
Block a user