Rails中Application Controller中的'protect_from_forgery'

Raj*_*tan 18 ruby-on-rails applicationcontroller

config/application_controller.rb我的Rails应用程序目录中的文件中,我找到了以下代码:

class ApplicationController < ActionController::Base
  protect_from_forgery
end
Run Code Online (Sandbox Code Playgroud)

任何人都能告诉我project_from_forgery它的用法和原因是什么?