diff --git a/config.ru b/config.ru index 851d4dd..8ba38ec 100644 --- a/config.ru +++ b/config.ru @@ -7,7 +7,7 @@ require 'rack/cors' use Rack::Cors do allow do - origins ENV['CORS_ALLOW_ORIGINS'] + origins ENV['CORS_ALLOW_ORIGINS'].split(',').map(&:strip) resource '*', headers: :any end end