mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Remove HTTP prefix, this is a Rack impl convention, not a standard.
This commit is contained in:
parent
8f5736a057
commit
22d6c1773e
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ module Kemal::Middleware
|
|||
# where an attacker can re-submit a form.
|
||||
#
|
||||
class CSRF < HTTP::Handler
|
||||
HEADER = "HTTP_X_CSRF_TOKEN"
|
||||
HEADER = "X_CSRF_TOKEN"
|
||||
ALLOWED_METHODS = %w[GET HEAD OPTIONS TRACE]
|
||||
PARAMETER_NAME = "authenticity_token"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue