Request origin not allowed: http://localhost:3001 when using Rails5 and ActionCable

You can put
Rails.application.config.action_cable.allowed_request_origins = ['http://localhost:3001'] in your development.rb

See https://github.com/rails/rails/tree/master/actioncable#allowed-request-origins for more informations

Leave a Comment