Include headers when polling #283
Answered
by
nossrannug
nossrannug
asked this question in
Q&A
-
Hi, I have a service running behind a reverse proxy that checks for a specific header in each request. If the header is missing it will return a 401. When falling back to the polling method because upgrading to a websocket connection failed the read and write requests fail because the header isn't included. Should the headers that we specified when invoking the connect method not be included in the read and write poll requests? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
nossrannug
Jun 12, 2022
Replies: 1 comment
-
Guess I figured it out 😄 sio = socketio.AsyncClient(
http_session=aiohttp.ClientSession(headers=headers),
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nossrannug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guess I figured it out 😄