From cac4846f5fc6ad2f5844745b46eb9f5cd736fc04 Mon Sep 17 00:00:00 2001 From: Beatrice Olivera Date: Thu, 30 Aug 2018 18:59:12 +0100 Subject: [PATCH] added request origin --- 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 255da15..b3051b4 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -47,7 +47,7 @@ Rails.application.configure do # Mount Action Cable outside main process or domain # config.action_cable.mount_path = nil config.action_cable.url = 'wss://polyglot-173.herokuapp.com/cable' - config.action_cable.allowed_request_origins = [ '*' ] + config.action_cable.allowed_request_origins = [ 'https://polyglot-173.herokuapp.com/' ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true