Skip to content
Docs Try Aspire

withTransformResponseHeadersAllowed

Function
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
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 function is an extension method on the following types: