From c9ce866f6f77cad6335b87efd0f4886737628981 Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 12:23:45 -0400 Subject: Tweak prod config to get Action Cable working --- config/environments/production.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/environments/production.rb') diff --git a/config/environments/production.rb b/config/environments/production.rb index beef772..4333530 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -43,7 +43,7 @@ Rails.application.configure do # Mount Action Cable outside main process or domain. # config.action_cable.mount_path = nil # config.action_cable.url = 'wss://example.com/cable' - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + config.action_cable.allowed_request_origins = [ "https://playesoterra.com" ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true @@ -119,4 +119,5 @@ Rails.application.configure do # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session config.hosts << "playesoterra.com" + config.hosts << "localhost" end -- cgit v1.2.3