Browse Source

Skip csrf token check for error controller.

Martin Edenhofer 8 years ago
parent
commit
2bf34b9404
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/controllers/errors_controller.rb

+ 1 - 0
app/controllers/errors_controller.rb

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