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
bouquet-0.2.1 gate/spec/dummy/config/initializers/cors.rb
bouquet-0.2.0 core/spec/dummy/config/initializers/cors.rb
bouquet-0.2.0 gate/spec/dummy/config/initializers/cors.rb
bouquet-0.2.0 store/spec/dummy/config/initializers/cors.rb
jobshop-0.0.2 spec/dummy/config/initializers/cors.rb
jobshop-0.0.1 spec/dummy/config/initializers/cors.rb
jobshop-0.0.0 spec/dummy/config/initializers/cors.rb
railties-5.0.0.beta1 lib/rails/generators/rails/app/templates/config/initializers/cors.rb