☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Embedding bokeh server (server_document()) not working

Community Support
Gebhartj
Gebhartj

I have this simple html (from this example):

<head>
    <meta charset="UTF-8">
    <title>Embeded test</title>
</head>

<body>
<script
    src="https://demo.bokeh.org/sliders/autoload.js?bokeh-autoload-element=1000&bokeh-app-path=/sliders&bokeh-absolute-url=https://demo.bokeh.org/sliders"
    id="1000">
</script>
</body>
</html>

Log:

Server:

I tried it on my server and got this log from sever:

Refusing websocket connection from Origin 'null';                       use --allow-websocket-origin= or set BOKEH_ALLOW_WS_ORIGIN= to permit this; currently we allow origins ...

The origin is null (as shown in the highlighted Request Headers in the picture above).

⌁   Link to post

End of archived discussion · Replies are disabled