I was following the troubleshooting guide
but the suggestions did not help. I am running streamlit on http//localhost:8501
and my nginx config looks like:
location /app/ {
#client_max_body_size 10G;
proxy_pass http://localhost:8501;
rewrite ^/app/(.*) /$1 break;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
I tried running streamlit with both --server.enableCORS=false
and --server.enableXsrfProtection=false
When I load the app I reach at streamlit, but it is connecting forever and “connecting” is blinking. Chrome devtools show:
DevTools failed to load SourceMap: Could not load content for https://proteomics.resistancedb.org/mint/static/css/main.4d34121b.chunk.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
The troubleshooting guide mentions:
If this fixes your issue, **you should re-enable CORS protection** and then set
browser.serverPortand
browser.serverAddress to the URL and port of your Streamlit app.
Which I tried as well.
I also tried various combination of the .streamlit/config.toml file:
[server]
enableCORS=false
enableXsrfProtection=false
enableWebsocketCompression=false
#baseUrlPath = "/app/"
[browser]
serverAddress = "localhost"