Possible to disable cookies when payload too large on the client? #5046
Unanswered
teamclouday
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm using socket.io client in nextjs, which connects to a python-socketio server with fastapi.
Today I ran into an issue that the server keeps disconnecting whenever the websocket connection is initialized from client. After many hours of debugging, it turns out that it's because the websockets package has a limit of request size
Logging the request payload it shows the content of my frontend cookies. (around 9k which is larger than the 8k limit)
Is there anyway to disable sending the cookies when connecting with websocket? Or at least pick what to send? In my case the cookies contain auth tokens from multiple projects. Those cookies won't be used on the server. I tried following code but it doesn't seem to work:
Beta Was this translation helpful? Give feedback.
All reactions