Reject request with csrf attack

This commit is contained in:
yafeilee 2016-08-12 14:57:18 +08:00
parent 6f29e536d7
commit ca7b1e3de2
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery
protect_from_forgery with: :exception
helper_method :format_time, :format_date