Hey, wondering if anyone can help with an issue I'...
# ktor
r
Hey, wondering if anyone can help with an issue I'm facing. Currently when I use ktor wasmJs client to call my ktor webserver with authentication and krpc, the websocket doesn't attach the authorization headers so the request it rejected, but this doesn't cause the request to retry as the js error event is just thrown by ktor. The authentication module also doesn't seem to be adding the authorization header at all when the host domain matches based on the chrome console. Any ideas what might be wrong?
c
No cross posting to multiple channels please. It makes following the conversation hard and also by the guidelines of this slack channel is considerd spamming. 🙏
r
sorry, just wanted to find the best audience to support and wasn't sure where and who would be best suited for help
a
Can you tell me which authentication method you use?
r
Bearer auth
a
It seems web browsers don't allow sending headers with the WebSockets API. See this answer for more info.
r
Welp, that answers my question but makes for more work sadly. Thanks for checking