intridea/grape — pull request #424 by seansu4you87 (2013-06-09 23:20:22+00:00)
Title: Cors doc fix

When the `use Rack::Cors` is placed in the Grape::API subclass instead of the config.ru, the middleware stack execution stops when OPTIONS methods are made, and when the Grape::API rescues from an exception.

Placing `use Rack::Cors` in config.ru maintains the middleware execution chain, and prevents the above errors.