2017-08-17 29 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功能。

回答