# File lib/rack/cors.rb, line 107 def origins(*args,&blk) @origins = args.flatten.collect do |n| case n when Regexp, /^https?:\/\// then n when 'file://' then n when '*' then @public_resources = true; n else ["http://#{n}", "https://#{n}"] end end.flatten @origins.push(blk) if blk end