Disabling CORS in Streamlit cloud deployment

I need to disable CORS for an app that I’ve deployed on Streamlit cloud.
I’m using a config.toml file with the appropriate statement, but it seems that CORS protection is always enabled.

[server]
enableCORS = false

How can I solve this problem?
Thank you

Can you verify where you are saving your config.toml file? Do you have .streamlit/config.toml in the root of your repository? If you set any other options in config.toml, do they apply?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.