Bokeh serve allow-websocket-origin not working as expected

I have added A record in DNS settings for both domains http://covid19analysis.live and http://www.covid19analysis.live .

After adding the following code, the website doesn’t open when 'http://www.covid19analysis.live ’ is typed in the browser:

nohup sudo python3 -m bokeh serve covid19-india/ --keep-alive 7000 --allow-websocket-origin=covid19analysis.live --port 80 --log-level=debug &

Not sure what could I be possibly doing wrong here.
Looking forward to get some direction.

You have to add every possible origin separately with multiple --allow-websocket-origin arguments.

Thank you @Bryan. Just tested --allow-websocket-origin=* and it did the job.

1 Like

Just to be clear that allows connections from any origin. Any web page on a different domain could embed your app directly. My earlier suggestion was to have multiple instances of --allow-websocket-origin specified on the command line invocation which is perfectly possible to do.