metamaps--metamaps/config/initializers/cors.rb

9 lines
209 B
Ruby
Raw Permalink Normal View History

2016-04-05 02:12:12 +00:00
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
2016-04-06 12:09:25 +00:00
resource '/api/*',
2016-04-05 02:12:12 +00:00
headers: :any,
methods: [:get, :post, :put, :delete, :options, :head]
end
end