1
私はバックエンドフレームワークRuby on Rails 5として、実際にwebsocket接続用のアクションケーブルとフロントエンドAndroidとして使用しています。 https://github.com/rails/actioncable-examplesのようにサーバーを作成し、クライアント接続用ライブラリhttps://github.com/hosopy/actioncable-client-javaを作成します。サーバーに接続するときに例外が発生するたびにエラーが発生します。ActionCable(Rails5)とAndroidクライアント
Started GET "/cable" for 192.168.0.106 at 2017-06-15 17:57:19 +0500
Cannot render console from 192.168.0.106! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Started GET "/cable/" [WebSocket] for 192.168.0.106 at 2017-06-15 17:57:19 +0500
Request origin not allowed:
Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
Finished "/cable/" [WebSocket] for 192.168.0.106 at 2017-06-15 17:57:19 +0500
問題は何ですか、間違っていますか?
を確認してください。https://stackoverflow.com/questions/35188892/request-origin-not-allowed-http-localhost3001-when-using-rails5-and-actionca – yzalavin
Thanxたくさん、それは私のために働く –