Pyinstaller streamlit http://localhost:3000 How to fix it?

2024-12-27 17:23:35.944 WARNING streamlit.config:
Warning: the config option ‘server.enableCORS=false’ is not compatible with ‘server.enableXsrfProtection=true’.
As a result, ‘server.enableCORS’ is being overridden to ‘true’.

More information:
In order to protect against CSRF attacks, we send a cookie with each request.
To do so, we must specify allowable origins, which places a restriction on
cross-origin resource sharing.

If cross origin resource sharing is required, please disable server.enableXsrfProtection.

2024-12-27 17:23:35.945 DEBUG streamlit.web.server.server: Starting server…
2024-12-27 17:23:35.946 DEBUG streamlit.web.server.server: Serving static content from the Node dev server
2024-12-27 17:23:35.947 DEBUG streamlit.web.server.server: Server started on port 8501
2024-12-27 17:23:35.949 DEBUG streamlit.runtime.runtime: Runtime state: RuntimeState.INITIAL → RuntimeState.NO_SESSIONS_CONNECTED

You can now view your Streamlit app in your browser.

Local URL: http://localhost:3000
Network URL: http://192.168.249.195:3000

2024-12-27 17:23:36.044 DEBUG streamlit.web.bootstrap: Setting up signal handler

How to fix it? :dizzy_face:

2 Likes

This is a warming about incompatible settings in a config.toml. Streamlit doesn’t allow CORS protection to be off while XSRF protection is on. It is odd that you are seeing port 3000, though, since that is reserved for development of the Streamlit library itself. I see the community-cloud tag in your post header, but the style of error looks more like local development.

Please can you clarify what environment are you in? Do you have a config.toml file? If so, what is in it?

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