RequestHeadersTransformExtensions.WithTransformRequestHeadersAllowed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[]