Sha256: 56eaa7b917faa6a94012e33fc4cddd4751e32e9fec25269211c5e16f96f54a1d
Contents?: true
Size: 762 Bytes
Versions: 4
Compression:
Stored size: 762 Bytes
Contents
require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module RailsApp class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. if Rails.version.to_f >= 5.1 config.load_defaults Rails.version.to_f end if Rails::VERSION::MAJOR >= 6 config.hosts.clear end # Configure CORS for public API if defined?(Rack::Cors) config.middleware.insert_before 0, Rack::Cors do allow do origins '*' resource '/api/v1/public/*', methods: [:get, :delete], headers: :any end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems