2

In my heroku logs I see this:

 WARN -- : attack prevented by Rack::Protection::JsonCsrf

I know the reason of why it appears there and I want to turn off that protection mechanism. How?

Alan Coromano
  • 24,958
  • 53
  • 135
  • 205

1 Answers1

1

Apply this in an appropriate location such as configu.ru:

configure do
  set :protection, :except => [:json_csrf]
end
Ross Attrill
  • 2,594
  • 1
  • 22
  • 31