mount ActionCable.server => '/cable'Started GET "/cable" for ::1 at 2016-05-24 11:42:16 -0400Started GET "/cable/" [WebSocket] for ::1 at 2016-05-24 11:42:16 -0400
Successfully upgraded to WebSocket(
我使用的是后端框架Rails 5,实际上是用于websocket连接和前端Android的动作电缆。如中所说,我创建服务器,对于客户端连接,使用库。当我连接到服务器时,每次都会失败,只有例外:Cannot renderAllowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Started GET &qu
INFO -- : [ae5f4486-eadd-466d-a4de-fd8db3cdcfb4] Successfully upgraded to WebSocket (REQUEST_METHOD:GET, HTTP_CONNECTION: upgrade, HTTP_UPGRADE: websocket)
D, [...]ERROR -- : Failed to upgrade to WebSocket (REQUEST_METHOD: G
is_otp_verified) end{:scope=>:user, :recall=>"users/sessions#new"} Started GET"/cable/" [WebSocket] for 127.0.0.1 at 2021-01-27 16:07:46 +0530
An unauthorized connection attemptREQUEST_METHOD: GET</
它无法连接,在Rails控制台上,我看到以下错误条目:StartedGET "/cable/" [WebSocket] for 172.17.0.1 at 2017-12-20 10:17:26 Request origin not allowed: http://localhost:4200
Faile