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?
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?
Apply this in an appropriate location such as configu.ru
:
configure do
set :protection, :except => [:json_csrf]
end