From f0d9191ffccaa8bba36f3560520c530213ab74ab Mon Sep 17 00:00:00 2001 From: yafeilee Date: Thu, 28 Apr 2016 12:02:36 +0800 Subject: [PATCH] Production cable allow config --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 16fa7c1..06253c5 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -62,7 +62,7 @@ WBlog::Application.configure do # config.assets.precompile += %w( ) #config.action_cable.url = 'wss://example.com/cable' - config.action_cable.allowed_request_origins = [ ENV['DOMAIN_NAME'] ] + config.action_cable.allowed_request_origins = [ "http://#{ENV['DOMAIN_NAME']}", "https://#{ENV['DOMAIN_NAME']}"] # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.