I found <this thread> where talking abut set-cooki...
# ktor
m
I found this thread where talking abut set-cookie header un the JS ktor client. I’m still finding issues to get thew header in my browser and I wonder if there is a current solution (or workaround) to this. last message was from @Aleksei Tirman [JB] 3 years ago 😕 I’m still on my way to get websockets authenticated in ktor and last idea was to use sessions but still having issues with the headers 😧
a
The direct use of the cookies is prohibited in a browser environment. You can follow https://youtrack.jetbrains.com/issue/KTOR-539 for updates.
m
so frustrating as a non js engineer :_D I’m trying ot find ways to authenticate websokets with js and find out that header injection is not suported, then cookies either… i will have to pass the token as data in the stream to authenticate == Thank you Aleksei!