Sha256: 59007f605179723991d8b928a49ad6bc8484733e1b0cb2c4b2005e97103e95f8

Contents?: true

Size: 504 Bytes

Versions: 689

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

689 entries across 564 versions & 43 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/railties-5.0.0/lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.1.rc2 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.1.rc1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
unsakini-0.0.1 spec/dummy/config/initializers/cors.rb
unsakini-0.0.0 spec/dummy/config/initializers/cors.rb
exes_poster-0.1.0 spec/dummy/config/initializers/cors.rb
railties-5.0.0.1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.rc2 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.racecar1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.rc1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.beta4 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.beta3 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.beta2 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
railties-5.0.0.beta1.1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb
bouquet-0.2.2 store/spec/dummy/config/initializers/cors.rb
bouquet-0.2.2 core/spec/dummy/config/initializers/cors.rb
bouquet-0.2.2 gate/spec/dummy/config/initializers/cors.rb
bouquet-0.2.1 core/spec/dummy/config/initializers/cors.rb