class Azu::Handler::CSRF
- Azu::Handler::CSRF
- Reference
- Object
Overview
The CSRF Handler adds support for Cross Site Request Forgery.
Defined in:
azu/handler/csrf.crConstant Summary
-
CHECK_METHODS =
["PUT", "POST", "PATCH", "DELETE"] of ::String
-
CSRF_KEY =
"csrf.token"
-
HEADER_KEY =
"X-CSRF-TOKEN"
-
PARAM_KEY =
"_csrf"
-
TOKEN_LENGTH =
32
Constructors
Class Method Summary
- .metatag(context)
- .tag(context)
- .token(context)
- .token_strategy : PersistentToken | RefreshableToken
- .token_strategy=(token_strategy : PersistentToken | RefreshableToken)