Clear Response Headers Policy
Removes all headers from the response except for those in the exclude list.
Configuration
{
"name": "my-clear-headers-outbound-policy",
"policyType": "clear-headers-outbound",
"handler": {
"export": "ClearHeadersOutboundPolicy",
"module": "$import(@zuplo/runtime)",
"options": {
"exclude": [
"HEADER_TO_LEAVE"
]
}
}
}
Read more about how policies work