8 lines
223 B
Ruby
8 lines
223 B
Ruby
|
# config/initializers/cors.rb
|
||
|
|
||
|
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||
|
allow do
|
||
|
origins '*'
|
||
|
resource '*', headers: :any, methods: [:get, :post, :patch, :put, :delete]
|
||
|
end
|
||
|
end
|