Server document doesnt work for my Bokeh app

Script = server_document("https://eyetrackingvisualizations.herokuapp.com/Visualization") doesn't work

Script = server_document(“https://demo.bokeh.org/sliders”) works

Errors: WebSocket connection to ‘ws://eyetrackingvisualizations.herokuapp.com/Visualization/ws’ failed: Error during WebSocket handshake: Unexpected response code: 403

Failed to connect to Bokeh server: Could not open websocket

Failed to load Bokeh session ZEzyee8xQ3ttRc2cHp1M3FQ1Sh7WKsVZvb6YM9tUx11a: Error: Could not open websocket

What can I do to make it work properly for my Bokeh app?

Hi @Clinton_Emok in order to allow direct embedding of Bokeh server app sessions in outside sites, a Bokeh server must be configured with the appropriate --allow-websocket-origin options to put the outside site on the allow-list. This is a security precaution similar to prevent cross-site abuse. Your Boke server is receiving, but rejecting, the embed attempt—that’s what the 403 “Forbidden” HTTP return status indicates. See to docs for full details:

https://docs.bokeh.org/en/latest/docs/user_guide/server.html#websocket-origin