Hi, I'm playing around with ktor 3.2.0, targeting ...
# ktor
b
Hi, I'm playing around with ktor 3.2.0, targeting js, and my headers are not showing up in the requests I'm observing in the browser dev tools. Any ideas what I might be doing wrong?
Copy code
httpClient.wss(
      request = {
        url(websocketUrl)

        header("foo", "bar")
      },
    ) {
      // TODO: consume websocket
    }
a
I suggest checking if the server allows your headers by sending the Access-Control-Allow-Headers header in the response to the preflight request.