Skip to content
DocsTry Aspire
DocsTry

YarpRoute.withTransformXForwarded

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpRoute {
// ... omitted for brevity
withTransformXForwarded(
headerPrefix?: string,
xDefault?: ForwardedTransformActions,
xFor?: ForwardedTransformActions,
xHost?: ForwardedTransformActions,
xProto?: ForwardedTransformActions,
xPrefix?: ForwardedTransformActions): YarpRoute;
}

Signature

methodwithTransformXForwarded
Adds the transform which will add X-Forwarded-* headers.
withTransformXForwarded(
headerPrefix?: string,
xDefault?: ForwardedTransformActions,
xFor?: ForwardedTransformActions,
xHost?: ForwardedTransformActions,
xProto?: ForwardedTransformActions,
xPrefix?: ForwardedTransformActions): YarpRoute
headerPrefixstringoptional= X-Forwarded-
xDefaultForwardedTransformActionsoptional= Set
xForForwardedTransformActionsoptional
xHostForwardedTransformActionsoptional
xProtoForwardedTransformActionsoptional
xPrefixForwardedTransformActionsoptional
YarpRoute

Defined on

This method is defined on the following type: