Skip to content
Snippets Groups Projects
Commit 5a8c149f authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix ActionCable origin checking

parent 8459acd1
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,6 @@ Rails.application.configure do
config.x.use_https = ENV['LOCAL_HTTPS'] == 'true'
config.action_mailer.default_url_options = { host: config.x.local_domain, protocol: config.x.use_https ? 'https://' : 'http://' }
config.action_cable.allowed_request_origins = ["http#{config.x.use_https ? 's' : ''}://#{config.x.local_domain}"]
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment