mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Merge pull request #1781 from HoneyryderChuck/patch-1
authenticity token: removed reference of compatibility with rack_csrf
This commit is contained in:
commit
029e27dfb6
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ module Rack
|
|||
# It checks the <tt>X-CSRF-Token</tt> header and the <tt>POST</tt> form
|
||||
# data.
|
||||
#
|
||||
# Compatible with the {rack-csrf}[https://rubygems.org/gems/rack_csrf] gem.
|
||||
# It is not OOTB-compatible with the {rack-csrf}[https://rubygems.org/gems/rack_csrf] gem.
|
||||
# For that, the following patch needs to be applied:
|
||||
#
|
||||
# Rack::Protection::AuthenticityToken.default_options(key: "csrf.token", authenticity_param: "_csrf")
|
||||
#
|
||||
# == Options
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue