1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00

Setup CORS for multiple values.

This commit is contained in:
Daniel Barber 2015-03-09 12:02:32 +00:00
parent c9a492fda1
commit deaa41c95e

View File

@ -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