bx-csrf
Installation
SKILL.md
bx-csrf: CSRF Protection
Installation
install-bx-module bx-csrf
# CommandBox
box install bx-csrf
BIFs
| BIF | Description |
|---|---|
CSRFGenerateToken( [key], [forceNew] ) |
Generate a CSRF token (optionally scoped to a key) |
CSRFVerifyToken( token, [key] ) |
Verify a CSRF token (returns boolean) |
CSRFHiddenField( [key], [forceNew] ) |
Generate a ready-to-embed <input type="hidden"> HTML field |
CSRFRotate() |
Rotate/invalidate all current tokens, forcing regeneration |