Skip csrf token check for error controller.

This commit is contained in:
Martin Edenhofer 2017-02-24 15:02:30 +01:00
parent 0c97b9a401
commit 2bf34b9404

View file

@ -1,4 +1,5 @@
class ErrorsController < ApplicationController class ErrorsController < ApplicationController
skip_before_action :verify_csrf_token
def routing def routing
not_found(ActionController::RoutingError.new("No route matches [#{request.method}] #{request.path}")) not_found(ActionController::RoutingError.new("No route matches [#{request.method}] #{request.path}"))
end end