SyntaxFix
Write A Post
Hire A Developer
Questions
Try configuration at /config/application.rb:
config.middleware.insert_before 0, "Rack::Cors" do allow do origins '*' resource '*', :headers => :any, :methods => [:get, :post, :options, :delete, :put, :patch], credentials: true end end