-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept server connections from any origin #6023
Comments
@mrocklin in What you may possibly need if you are running the server programmatically, and using https://github.com/bokeh/bokeh/blob/master/examples/howto/server_embed/flask_embed.py#L42 So I'm not sure what you are asking for with bullet 2? The message you are seeing is purely about ws connections, and not at all about host whitelisting (which does not happen anymore at all, we scrubbed the codebase of any use of I think adding both |
I'm not using any other system like Flask. I'm only using Bokeh. Here is how I start bokeh servers: https://github.com/dask/distributed/blob/master/distributed/bokeh/core.py#L18-L25 self.server = Server(self.apps, io_loop=self.loop,
port=port, address=ip, host=['*'],
check_unused_sessions_milliseconds=500,
)
self.server.start() |
Then, when I connect to my server from a web browser using a hostname like |
@bryevdv and I chatted about this privately. On my side I can add My fix in Dask is here: dask/distributed#957 |
After discussion with @mrocklin the problem was discovered. Previously So the proposal is this: Don't completely ignore |
@bokeh/dev this seems important I intend to try to make a very small PR for it |
I get errors like the following from my bokeh server application:
There may be two problems here:
Server(..., host=['*'])
which in previous versions ensured that my server could be accessed regardless of what the caller called my server address.The second point is more important to me (and to others). It is critical in many applications to be able to robustly view a bokeh server even if we don't know, at the time of setting up the server, what that server's address will be. This was the intent of #4052
The text was updated successfully, but these errors were encountered: