8 lines
209 B
Ruby
8 lines
209 B
Ruby
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
|
allow do
|
|
origins '*'
|
|
resource '/api/*',
|
|
headers: :any,
|
|
methods: [:get, :post, :put, :delete, :options, :head]
|
|
end
|
|
end
|