I doubt the backend serving my app is important, but if you care, I\'m using rack-cors with a Rails 4.0 app.
Using jQuery, I send my app a PATCH request lik
You might want to add this to your config/application.rb file:
#config/application.rb
config.middleware.use Rack::Cors do
allow do
origins '*'
resource '/*', :headers => :any, :methods => :patch
end
end
The resource part is where you define which methods / requests your endpoint can accept!
Hope this helps