Action Cable not working after binding with ip

后端 未结 1 1410
滥情空心
滥情空心 2021-02-14 12:47

I have implemented action cable of rails-5 in my system and it\'s work fine on localhost, but when i tried to bind with ip it\'s give below error message.

相关标签:
1条回答
  • 2021-02-14 13:42

    Add below line to config/environments/development.rb file

    config.action_cable.allowed_request_origins = [/http:\/\/*/, /https:\/\/*/]
    

    Hope this will help you.

    0 讨论(0)
提交回复
热议问题