bash
streamlit run my_app.py --server.enableWebsocketCompression=false
If this fixes your issue, your server setup is likely stripping the
Sec-WebSocket-Extensions HTTP header that is used to negotiate Websocket compression.
Compression is not required for Streamlit to work, but it's strongly recommended as it
improves performance. If you'd like to turn it back on, you'll need to find which part
of your infrastructure is stripping the Sec-WebSocket-Extensions HTTP header and
change that behavior.
Symptom #3: Unable to upload files when running in multiple replicas
If the file uploader widget returns an error with status code 403, this is probably
due to a misconfiguration in your app's
XSRF protection logic.
To diagnose the issue, try temporarily disabling XSRF protection by running Streamlit
