Hi Has Anyone been able to configure a streamlit app to run on IDX??
This is how my nix file looks like:
And when I try the basic streamlit command: streamlit hello
and navigate to the URL this is what I see:
I think the issue is the URL is getting mapped to a backend port which is not rendered by the browser…
anyone have any work around or suggestions on how I can get it to work??
Thanks
1 Like
I am having the same problem. I can run just fine in github codespace.
Facing same issue finding solution i thought this issue is bcz google is directing port from 8501 to his main url 80 port so its issue of redirection
make a .streamlit dir put/make a config.toml file place this inside it. =[server]
enableCORS = false
this is the same place you would put your secrets.toml file. Streamlit fired right up… goodbye my whole morning.
kirupa
January 6, 2025, 7:34pm
5
Maybe @rody or @davideast have run into this and may have some thoughts!
Also for or cloudrun deployment add this to your config.toml
enableCORS = false
enableXsrfProtection = false
1 Like
rody
March 13, 2025, 5:50pm
7
Make sure to use the public ports and if needed a reverse proxy to have all the urls going out on the same domain