Update cors.rb

Do you mean else if?