Skip to content
Docs Try Aspire
Docs Try

withTransformUseOriginalHostHeader

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpRoute {
// ... omitted for brevity
withTransformUseOriginalHostHeader(useOriginal?: boolean): YarpRoute;
}

Signature

method withTransformUseOriginalHostHeader
Adds the transform which will copy the incoming request Host header to the proxy request.
withTransformUseOriginalHostHeader(useOriginal?: boolean): YarpRoute
useOriginal boolean optional = True
YarpRoute

Applies to

This method applies to the following types: