Manuel Bustillo 716b819de2
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 3m17s
Use jsonapi-rails to serialize API responses
2024-08-11 16:19:54 +02:00

8 lines
223 B
Ruby

# config/initializers/cors.rb
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*', headers: :any, methods: [:get, :post, :patch, :put, :delete]
end
end