aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable
diff options
context:
space:
mode:
authorMichael Dever <michaelcdever@gmail.com>2016-06-16 21:04:43 +0100
committerMichael Dever <michaelcdever@gmail.com>2016-06-16 21:04:43 +0100
commit0a8584456e05e3dedccca3789a415080f9a43f80 (patch)
tree361325b35966fc7a652980240a936e3d8a68c49d /actioncable/lib/action_cable
parent2ff5a1755f12e417371d1b3c0e0f9b690fa57ab5 (diff)
downloadrails-0a8584456e05e3dedccca3789a415080f9a43f80.tar.gz
rails-0a8584456e05e3dedccca3789a415080f9a43f80.tar.bz2
rails-0a8584456e05e3dedccca3789a415080f9a43f80.zip
Allow actioncable connections from any port in development
Diffstat (limited to 'actioncable/lib/action_cable')
-rw-r--r--actioncable/lib/action_cable/engine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/lib/action_cable/engine.rb b/actioncable/lib/action_cable/engine.rb
index 96176e0014..34f9952c71 100644
--- a/actioncable/lib/action_cable/engine.rb
+++ b/actioncable/lib/action_cable/engine.rb
@@ -22,7 +22,7 @@ module ActionCable
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"