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
More Related Contents:
- Rails 5: Load lib files in production
- ActiveRecord OR query Hash notation
- Rails 5: ActiveRecord OR query
- rescue_from ActionController::RoutingError in Rails 4
- rails db:migrate vs rake db:migrate
- Rails – How to use a Helper Inside a Controller
- Load lib files in production
- What are the brackets [5.1] after ActiveRecord Migration and how does it work? [duplicate]
- Docker: Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- What to use instead of `render :text` (and `render nothing: true`) in rails 5.1 and later?
- Controller spec unknown keyword: id
- LoadError: Could not load the ‘listen’ gem (Rails 5)
- Rails validation required parameter (lock_version)
- What is the difference between
- Override devise registrations controller
- PostgreSQL gapless sequences
- ActiveRecord, has_many :through, and Polymorphic Associations
- Path helpers generate paths with dots instead of slashes
- Rails /lib modules and
- Rails 4, how to correctly configure smtp settings (gmail)
- How can I use Ruby/Rails variables inside Sass?
- Rails: redirect all unknown routes to root_url
- How to get Ruby / Homebrew / RVM to work on Yosemite?
- ActiveRecord serialize using JSON instead of YAML
- Looking for suggestions for building a secure REST API within Ruby on Rails
- Fall back to default language if translation missing
- Rails – render :action to target anchor tag?
- Is there a “phpmyadmin” for Ruby on Rails? [closed]
- How to do static content in Rails?
- Configuring Warden for use in RSpec controller specs