Permalink
Browse files

Merge pull request #25420 from michaeldever/mdever_actioncable_develo…

…pment_ports

Allow actioncable connections from all ports in development
  • Loading branch information...
guilleiguaran committed Jun 20, 2016
2 parents 166e7f0 + 0a85844 commit 994aeaa1dd72e0651da1c704bb8c44b552b10d35
Showing with 1 addition and 1 deletion.
  1. +1 −1 actioncable/lib/action_cable/engine.rb
@@ -22,7 +22,7 @@ class Engine < Rails::Engine # :nodoc:
initializer "action_cable.set_configs" do |app|
options = app.config.action_cable
options.allowed_request_origins ||= "http://localhost:3000" if ::Rails.env.development?
options.allowed_request_origins ||= /https?:\/\/localhost:\d+/ if ::Rails.env.development?
app.paths.add "config/cable", with: "config/cable.yml"

0 comments on commit 994aeaa

Please sign in to comment.