csrf-protection
CommunityAutomatically secure your APIs against cross-site attacks.
Authorharperaa
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates the risk of cross-site request forgery attacks that could trick users into making unintended requests, protecting your application from unauthorized actions like account takeovers or data manipulation.
Core Features & Use Cases
- HMAC-SHA256 Protection: Industry-standard cryptographic token validation that prevents forgery.
- Single-Use Session Tokens: Each token expires after one use, making intercepted tokens useless.
- Use Case: Imagine you have a banking application with transfer functionality. Use this Skill to automatically protect all POST/PUT/DELETE endpoints, ensuring that only legitimate requests from your authenticated users can perform sensitive actions.
Quick Start
Protect your API endpoint from cross-site request forgery attacks by wrapping the handler with CSRF middleware.
Dependency Matrix
Required Modules
None requiredComponents
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: csrf-protection Download link: https://github.com/harperaa/secure-claude-skills/archive/main.zip#csrf-protection Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.