2017-08-17 30 views
0

Netty Framework中是否有与Sock.js开箱即用的兼容类?需要关于与sockjs兼容的开箱即用Netty Framework的建议

我们尝试使用Netty的官方示例在Netty中编写一个简单的Websocket服务器,并且它与Chrome提供的兼容HTML 5的Websocket一起工作得很好。

我们已经修改了服务器上/信息鬻JSON所需的格式

但是要求Sock.js

,当我们尝试连接到该服务器,我们看到以下错误 -

XMLHttpRequest cannot load http://some-server:8092/676/j_5cm5ak/xhr. 
    No ‘Access-Control-Allow-Origin’ header is present on the requested resource. 
    Origin ‘http://some-server’ is therefore not allowed access. 
    The response had HTTP status code 404. 

我们没有使用任何XHR功能。

回答