module App class Application < Rails::Application config.middleware.use Rack::Cors do allow do origins '*' resource '*', methods: [:get, :post, :put, :delete, :options], headers: :any end end end end