addCsrfHeader Function

Beta  

This function when used on IModelClient adds CSRF header to every request.

addCsrfHeader(headerName: string = "X-XSRF-TOKEN", cookieName: string = "XSRF-TOKEN"): HttpRequestOptionsTransformer

Parameter Type Description
headerName string  
cookieName string  

Returns - HttpRequestOptionsTransformer

Defined in

Last Updated: 12 June, 2024