API Reference > imodelhub-client > iModelHubClient > addCsrfHeader 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 clients/imodelhub/src/imodelhub/BaseHandler.ts Line 60 Last Updated: 11 June, 2024