Embedding bokeh server (server_document()) not working

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).

Do you have any idea why Origin is null? all I can think to suggest in that case is to turn off websocket origin checking altogther via --allow-websocket-origin=*

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