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