mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Allow actioncable connections from any port in development
This commit is contained in:
parent
2ff5a1755f
commit
0a8584456e
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue