-
As the title mentions, I can't acces the current_user. The user authenticates via http beforehand, meaning This is the setup:
And using it:
What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
It's hard for me to tell. You need to debug this to determine where is the problem. Is the browser sending your Flask session cookie in the Socket.IO connection request? That would determine if the connect event can see your user or not. |
Beta Was this translation helpful? Give feedback.
-
Wait, I think I need to correct myself. Which one of these is the initial request, that triggers the |
Beta Was this translation helpful? Give feedback.
-
@miguelgrinberg I think I found the culprit. It seems like I have to set on the client the following option: |
Beta Was this translation helpful? Give feedback.
@miguelgrinberg I think I found the culprit. It seems like I have to set on the client the following option:
{withCredentials: true}
which defaults to false. Thank you for your time.