compute-tooling / compute-studio

A Utility for Sharing Computational Models
https://compute.studio
Other
15 stars 5 forks source link

Fix cors issue by setting address #461

Closed hdoupe closed 3 years ago

hdoupe commented 3 years ago

Most sessions don't run into any issues with this but I did notice a cors issue in one of them. This was resolved by refreshing the page, but the documentation seems to indicate that this setting needs to be set to the app domain:

https://docs.streamlit.io/en/stable/streamlit_configuration.html

# Internet address where users should point their browsers in order to connect to the app. Can be IP address or DNS name and path.
# This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser - Tell the browser where to connect to the server when in liveSave mode.
# Default: 'localhost'
serverAddress = "localhost"