YarpRoute.WithTransformResponseHeadersAllowed

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpRoute interface {
// ... 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
allowedHeaders[]string
YarpRoute

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: