metamaps--metamaps/config/initializers/cors.rb
2016-04-05 10:12:12 +08:00

8 lines
204 B
Ruby

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