diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ea996d82..76e6ff29 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,6 +3,7 @@ class ApplicationController < ActionController::Base # For APIs, you may want to use :null_session instead. # protect_from_forgery with: :exception protect_from_forgery unless: -> { request.format.json? } + skip_before_action :verify_authenticity_token after_action :flash_to_http_header if (Rails.env.development? || Rails.env.test?)