Login/Authorization System Migration to uWebSockets.js: Cookie Reading Issue #985
BackgroundI am trying to build a login/authorization system on Uwebsocket. I recently migrated from socket.io and ChallengeThe problem I am encountering is the cookie I set in a .get route can not be read in the ws.upgrade handler. I have tried just about everything and read through all the discussions and issues I can find on this Repo but to no avail. ReferenceI stumbled across this answer on a different discussion How to implement user authorization? #112 but this code yields no better results. Objective
Code ExampleAny insights or suggestions on overcoming this cookie reading issue would be highly appreciated. Thank you! |
Replies: 1 comment 2 replies
|
You are lacking basic troubleshooting steps. Did you check browser to confirm cookie was set, and was sent with request via chrome dev tools ? |
You are lacking basic troubleshooting steps. Did you check browser to confirm cookie was set, and was sent with request via chrome dev tools ?