Hi guys, I’m running Tyk headless; my API supports Authentication tokens which works fine and adds custom headers based on the client’s metadata to the upstream request. I’m now trying to enable websockets when the client switches protocol to using WS. My upstream server also supports both HTTP and WS protocols. To enable websockets, I’ve added this to my Tyk proxy config:
...
"http_server_options": {
"enable_http2": true,
"enable_websockets": true
},
...
However, the client is refused connection and I can read the following error in my Tyk logs:
Attempted access with malformed header, no auth header found.
How can I get the websocket to work, with tyk auth tokens?