in my frontend with jquery - ajax, I get this error message:
Failed to load http://127.0.0.1:5006/bk_server1: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed access. The response had HTTP status code 405.
Not sure, I've never tried to load a Bokeh server URL that way, and it's certainly not documented. It's possible that new development would have to happen to support this use case. Or it may just not be possible. Typically Bokeh server apps are embedded via a <script> tag that is configured to load the app correctly from the URL. Were you planning on fetching the script manually and exec'ing it or something?
I did :
bokeh serve bk_server1.py --allow-websocket-origin 127.0.0.1:8080
in my frontend with jquery - ajax, I get this error message:
Failed to load http://127.0.0.1:5006/bk_server1: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 405.
I encountered with CORS issue.
What am I doing wrong?
regards