config/environments/development.rb
config.action_cable.url = 'ws://10.129.56.223:28080' // 浏览器访问的websoket 服务地址
ActionCable.server.config.disable_request_forgery_protection = true // 允许远程请求访问
config/environments/development.rb
config.action_cable.url = 'ws://10.129.56.223:28080' // 浏览器访问的websoket 服务地址
ActionCable.server.config.disable_request_forgery_protection = true // 允许远程请求访问
转载于:https://www.cnblogs.com/lizhenjiang/p/7064649.html