1
0
Fork 0
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:
Jordan Owens 2022-05-20 11:07:14 -04:00 committed by GitHub
commit 029e27dfb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#