Remove X-Tyk-Trace-ID header from WebSocket upgrade responses

Hi,

We have tracing enabled on our Tyk Gateway but need to prevent the X-Tyk-Trace-ID header from appearing in responses sent to clients.

For regular HTTP responses, I successfully resolved this by implementing a response plugin that deletes the header. Note that using transform_response_headers in the API definition did not work for this purpose.

However, the response plugin solution doesn’t work for WebSocket connections - specifically, the X-Tyk-Trace-ID header still appears in the HTTP 101 Switching Protocols response during the WebSocket upgrade process.

How can I remove this header from WebSocket upgrade responses (HTTP 101)?

Thanks for your assistance.