allow different action cable host

This commit is contained in:
Zachary Chai
2017-02-16 10:29:08 -05:00
parent 82df7d209a
commit 74f1f4c071
4 changed files with 23 additions and 17 deletions

View File

@ -65,7 +65,6 @@ Rails.application.configure do
unless ENV["RAILS_ACTION_CABLE_FORGERY_PROTECTION"].present?
Rails.application.config.action_cable.disable_request_forgery_protection = true
end
# config.action_cable.allowed_request_origins = ["https://#{ENV['HOSTNAME']}", "http://#{ENV['HOSTNAME']}"]
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify