```ruby
# encoding: UTF-8
require './api'

use Rack::ShowExceptions

set :protection, :except => [:http_origin]

run Sinatra::Application
```

Disable all Rack::Protection stuff to see if that prevents the random HTTP 500 errors.
user
```ruby
# encoding: UTF-8
require './api'

use Rack::ShowExceptions

disable :protection

run Sinatra::Application
```
assistant