Python bokeh使用不同的http方法请求资源两次

Python bokeh使用不同的http方法请求资源两次,python,http,flask,bokeh,Python,Http,Flask,Bokeh,在我的Chrome开发工具中,我看到有一个http://127.0.0.1:5006/bokeh/objinfo/3ca23dfb-07be-4872-80d7-8b34bfcc7a5a/235a1e7e-a77c-461c-85f4-02acab5ee24c发生两次 第一次,http方法是OPTIONS。这会导致bokehcrossdomaindecorator添加正确的http头访问控制允许源: 第二次,方法是GET,我在devtools中有以下错误消息: XMLHttpRequest ca

在我的Chrome开发工具中,我看到有一个
http://127.0.0.1:5006/bokeh/objinfo/3ca23dfb-07be-4872-80d7-8b34bfcc7a5a/235a1e7e-a77c-461c-85f4-02acab5ee24c
发生两次

第一次,http方法是
OPTIONS
。这会导致bokeh
crossdomain
decorator添加正确的http头
访问控制允许源:

第二次,方法是
GET
,我在
devtools
中有以下错误消息:

XMLHttpRequest cannot load http://127.0.0.1:5006/bokeh/objinfo/3ca23dfb-07be-4872-80d7-8b34bfcc7a5a/235a1e7e-a77c-461c-85f4-02acab5ee24c. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://45.55.181.194' is therefore not allowed access. The response had HTTP status code 500.
双重请求是我想象中的产物吗?我是否可以提供其他代码来帮助解决这个问题