Skip to content
DocsTry Aspire
DocsTry

withTransformResponseHeadersAllowed

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

Signature

methodwithTransformResponseHeadersAllowed
Adds the transform which will only copy the allowed response headers. Other transforms that modify or append to existing headers may be affected if not included in the allow list.
withTransformResponseHeadersAllowed(allowedHeaders: string[]): YarpRoute
allowedHeadersstring[]
YarpRoute

Applies to

This method applies to the following types: