I faced this Axios error when deploy app as Azure Web App using python deployment.
I was able to resolve that error long time ago by using CICD pipeline with
startUpCommand: 'python -m streamlit run ./src/Home.py --server.port 8000 --server.address 0.0.0.0 --server.enableCORS=false --server.enableXsrfProtection=false'
And adding following into Azure wep app configs (startup command):
python -m streamlit run ./src/Home.py --server.port 8000 --server.address 0.0.0.0 --server.enableCORS=false --server.enableXsrfProtection=false
But for some reason the error got back when all three conditions meet:
- app deployed as azure web app AND
- user enable corporate vpn AND
- use upload file with size 10mb or more.
After many attempts and I found that it happens if app deployed in US (e.g. US West 2). When I deployed azure web app in Canada Central the error went away.
For reference here is my Azure Web App setup:
streamlit 1.44.0



