我无法在Windows上运行巨无霸/Socket.IO,所以我尝试让它在Linux上运行。我不太了解Linux (或者Rails )。我无法让Socket.io/Juggernaut在我的Rails服务器上工作。它在OS上正常工作(所以我知道它在工作)。
安装完所有设备后,我将执行以下操作:
/rails/app/path/rails s
redis-server
juggernaut # output is: info - socket.io started
所以我猜这还行。现在,当我运行一个使用Juggernaut的窗口时,我在Chrome Javascript控制台中得到以下错误:
X
我正在尝试运行一个在web2py服务器和基于web2py的客户端显示可视化数据的项目。当同时运行服务器和客户端时,客户端的chrome控制台显示:
XMLHttpRequest cannot load http://127.0.0.1:8075/?format=json.
No 'Access-Control- Allow-Origin' header is present on the requested resource.
Origin 'http://127.0.0.1:8080' is therefore not allowed access.