Skip csrf token check for error controller.
This commit is contained in:
parent
0c97b9a401
commit
2bf34b9404
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue