Socket session is not working on ubuntu server but local is working. #4989
Answered
by
darrachequesne
aiden77mori
asked this question in
General
-
export const configureSocketMiddleware = (io: IOServer) => { I can pass this middleware on localhost but once I move the node.js project to server, I couldn't use the session. |
Beta Was this translation helpful? Give feedback.
Answered by
darrachequesne
Apr 3, 2024
Replies: 1 comment 3 replies
-
Hi! If the session is not found, then it might indicate that the cookie is not sent due to CORS. Is that your case? Reference: https://socket.io/docs/v4/handling-cors/ |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
darrachequesne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
If the session is not found, then it might indicate that the cookie is not sent due to CORS. Is that your case?
Reference: https://socket.io/docs/v4/handling-cors/