diff options
Diffstat (limited to 'lib/action_cable/connection/base.rb')
-rw-r--r-- | lib/action_cable/connection/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index a2ef99dff4..5bf7086b60 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -172,7 +172,7 @@ module ActionCable origin_host = URI.parse(env['HTTP_ORIGIN']).host allowed = if server.config.allowed_request_origins.present? - Array.wrap(server.config.allowed_request_origins).include? origin_host + Array(server.config.allowed_request_origins).include? origin_host else request.host == origin_host end |