Skip to content
Docs Try Aspire
Docs Try

withTransformResponseHeadersAllowed

Method
📦 Aspire.Hosting.Yarp v13.3.0
interface YarpRoute {
// ... omitted for brevity
withTransformResponseHeadersAllowed(allowedHeaders: string[]): YarpRoute;
}

Signature

method withTransformResponseHeadersAllowed
Adds the transform which will only copy the allowed response headers. Other transforms
withTransformResponseHeadersAllowed(allowedHeaders: string[]): YarpRoute
allowedHeaders string[]
YarpRoute

Applies to

This method applies to the following types: