Dela via


RequestHeadersTransformExtensions.WithTransformRequestHeadersAllowed Method

Definition

Clones the route and adds the transform which will only copy the allowed request headers. Other transforms that modify or append to existing headers may be affected if not included in the allow list.

public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformRequestHeadersAllowed (this Yarp.ReverseProxy.Configuration.RouteConfig route, params string[] allowedHeaders);
static member WithTransformRequestHeadersAllowed : Yarp.ReverseProxy.Configuration.RouteConfig * string[] -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformRequestHeadersAllowed (route As RouteConfig, ParamArray allowedHeaders As String()) As RouteConfig

Parameters

route
RouteConfig
allowedHeaders
String[]

Returns

Applies to