Sha256: 59007f605179723991d8b928a49ad6bc8484733e1b0cb2c4b2005e97103e95f8

Contents?: true

Size: 504 Bytes

Versions: 688

Compression:

Stored size: 504 Bytes

Contents

# Be sure to restart your server when you modify this file.

# Avoid CORS issues when API is called from the frontend app.
# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests.

# Read more: https://github.com/cyu/rack-cors

# Rails.application.config.middleware.insert_before 0, Rack::Cors do
#   allow do
#     origins 'example.com'
#
#     resource '*',
#       headers: :any,
#       methods: [:get, :post, :put, :patch, :delete, :options, :head]
#   end
# end

Version data entries

688 entries across 563 versions & 42 rubygems

Version Path
railties-6.1.7.10 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.9 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.8 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
firetail-1.0.1 examples/rails/config/initializers/cors.rb
chatwork_webhook_verify-1.0.0 spec/dummy/config/initializers/cors.rb
railties-6.1.7.7 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.6 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.5 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.4 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.3 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
trailblazer-endpoint-0.0.12 test/rails-app/config/initializers/cors.rb
railties-6.1.7.2 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7.1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.0.6.1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.1.7 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
railties-6.0.6 lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
trailblazer-endpoint-0.0.11 test/rails-app/config/initializers/cors.rb
sober_swag-0.25.2 example/config/initializers/cors.rb