How to Pass Global Headers to SubGraph subscription in GraphQl Federation

Currently, global headers are passed from supergraph to subgraph. However, subgraph subscriptions don’t receive the same global headers when using websocket connection.

I suppose global headers should behave the same way in subscriptions as they are behaving in regular queries. Is there a different way to do it or is it not supported yet?

Hello @Firas_Odeh and welcome to the community.

Could you share your version of gateway and dashboard if you also have that as well?

Hello Olu. Thanks for your help. I’m using Tyk gateway v4.2 only.

Hello @Feras_Odeh,

Passing global headers to subgraph subscriptions using WebSocket connection works fine for me on GW v4.2.1

Can you share your process? And API definition?