metamaps--metamaps/config/initializers/cors.rb
Devin Howard fc701cf485 rubocop
2017-10-16 18:15:47 -07:00

11 lines
245 B
Ruby

# frozen_string_literal: true
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '/api/*',
headers: :any,
methods: %i[get post put delete options head]
end
end