From ca7b1e3de286565514c5cc0c78b063e74a03cc01 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Fri, 12 Aug 2016 14:57:18 +0800 Subject: [PATCH] Reject request with csrf attack --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 45c5f31..e767f08 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,5 @@ class ApplicationController < ActionController::Base - protect_from_forgery + protect_from_forgery with: :exception helper_method :format_time, :format_date