Dela via


ResponseTransformExtensions.WithTransformResponseHeadersAllowed Method

Definition

Clones the route and adds the transform which will only copy the allowed response 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 WithTransformResponseHeadersAllowed (this Yarp.ReverseProxy.Configuration.RouteConfig route, params string[] allowedHeaders);
static member WithTransformResponseHeadersAllowed : Yarp.ReverseProxy.Configuration.RouteConfig * string[] -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformResponseHeadersAllowed (route As RouteConfig, ParamArray allowedHeaders As String()) As RouteConfig

Parameters

route
RouteConfig
allowedHeaders
String[]

Returns

Applies to