Not able to deploy to Heroku | Error in creating config.toml

Continuing the discussion from Not able to deploy to Heroku | Error in creating config.toml:

I have done the following and it’s working now:

  • .streamlit/config.toml:
[theme]
primaryColor="#FF7903"
backgroundColor="#0E1117"
secondaryBackgroundColor="#31333F"
textColor="#FAFAFA"
font="sans serif"
  • setup.sh:
mkdir -p ~/.streamlit/
echo "[general]  
email = \"me@gmail.com\""  > ~/.streamlit/credentials.toml
echo "[server]
headless = true
port = $PORT
enableCORS = true"  >> ~/.streamlit/config.toml
  • Procfile:
web: sh setup.sh && streamlit run app.py

But another thing I want to know, what does enableCORS = true mean? I checked some use false there. Should I put true or false here? Also, What should I do if I like to show the credential info (my name, email) at the bottom beside Made with Streamlit in my Heroku app?

1 Like