permitir cors desde cualquier lado

This commit is contained in:
fauno 2019-04-20 12:15:18 -03:00
parent 054f2aa3a0
commit b2f73ab22b
No known key found for this signature in database
GPG key ID: 456032D717A4CD9C

View file

@ -7,12 +7,12 @@
# Read more: https://github.com/cyu/rack-cors # Read more: https://github.com/cyu/rack-cors
# Rails.application.config.middleware.insert_before 0, Rack::Cors do Rails.application.config.middleware.insert_before 0, Rack::Cors do
# allow do allow do
# origins 'example.com' origins '*'
#
# resource '*', resource '*',
# headers: :any, headers: :any,
# methods: [:get, :post, :put, :patch, :delete, :options, :head] methods: %i[get post put patch delete options head]
# end end
# end end