csrf-protection

Community

Secure your web apps from CSRF attacks.

AuthorCleanExpo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents Cross-Site Request Forgery (CSRF) attacks, a common vulnerability where attackers trick users into performing unwanted actions on web applications they are authenticated to.

Core Features & Use Cases

  • Token-Based Protection: Implements synchroniser tokens and the double-submit cookie strategy.
  • Header & Cookie Validation: Enforces SameSite cookie attributes and validates Origin/Referer headers.
  • Use Case: Protects all state-changing API endpoints and form submissions in your Next.js or FastAPI application, ensuring that requests originate from your own application and are authorized by the user.

Quick Start

Apply the csrf-protection skill to secure your FastAPI application's API routes.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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/CleanExpo/DR-NRPG/archive/main.zip#csrf-protection

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 223,000+ vetted skills library on demand.