@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
11 lines • 663 B
TypeScript
import { ODataRequest, ODataRequestConfig } from '../../odata-common';
/**
* @deprecated Since v1.20.0, use [[buildCsrfHeaders]] instead.
*
* Add CSRF token and cookies for a request to destination related headers.
* @param request - The request to get CSRF headers for.
* @param headers - Destination related headers to include in the request.
* @returns A promise to an object containing the CSRF related headers
*/
export declare function addCsrfTokenAndCookies<RequestT extends ODataRequestConfig>(request: ODataRequest<RequestT>, headers: Record<string, string>): Promise<Record<string, string>>;
//# sourceMappingURL=legacy-csrf-token-header.d.ts.map