bokeh server No 'Access-Control-Allow-Origin

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

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?

Thanks,

Bryan

···

On Mar 21, 2018, at 05:25, [email protected] wrote:

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

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/931cc6ba-dbf7-4df7-b0f8-48d21a83da9f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.