Posts by Antonio Ribeiro • 1 point
1 post
-
0
votes2
answers1232
viewsA: Enable CORS in api Rails
In my case I use Rails 5, I created a file called Cors.Rb in config/initializers/Cors.Rb but I put it like this: Rails.application.config.middleware.insert_before 0, "Rack::Cors", :debug => true,…