bx-csrf

Official

CSRF protection for BoxLang web apps.

Authorortus-boxlang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides Cross-Site Request Forgery protection for BoxLang web applications by generating, validating, rotating, and scoping tokens to secure state-changing requests.

Core Features & Use Cases

  • Generate tokens with CSRFGenerateToken([key]) for forms or API calls and optionally scope by key.
  • Verify tokens with CSRFVerifyToken(token, [key]) to guard state-changing actions.
  • Render tokens as hidden fields via CSRFHiddenField([key], [forceNew]).
  • Rotate all tokens with CSRFRotate() to invalidate existing sessions.
  • Use per-form/scoped tokens, header-based verification for AJAX, and automatic verification if configured.

Quick Start

Install the bx-csrf module and start using CSRFGenerateToken() to issue tokens and CSRFVerifyToken() to validate them.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bx-csrf
Download link: https://github.com/ortus-boxlang/skills/archive/main.zip#bx-csrf

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.