Options for middleware to fetch CSRF tokens.

interface CsrfMiddlewareOptions {
    method?: Method;
    middleware?: HttpMiddleware[];
    url?: string;
}

Properties

method?: Method

Method used for the token fetching. Default is head.

middleware?: HttpMiddleware[]

Middlewares added to the token retrieval request.

url?: string

URL used for the token fetching. Default is the resource path without parameters.

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.