Skip to content

Commit

Permalink
Desabilita CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjust committed Feb 11, 2025
1 parent 35e7855 commit 9b9863b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

# 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
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*',
headers: :any,
methods: [:get, :post, :put, :patch, :delete, :options, :head]
end
end

0 comments on commit 9b9863b

Please sign in to comment.