orpc-simple-csrf-protection
CommunityAdd basic CSRF protection to your oRPC application.
Authorali-master
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill adds basic CSRF protection to your oRPC application, ensuring that requests originate from JavaScript code and not from HTML forms or direct browser navigation.
Core Features & Use Cases
- CSRF Protection: Helps ensure requests originate from JavaScript code.
- Use Case: Ideal for applications that store sensitive data in cookies with
SameSite=LaxorSameSite=None.
Quick Start
Add the Simple CSRF Protection Plugin to your oRPC application using the following code:
import { SimpleCsrfProtectionHandlerPlugin } from '@orpc/server/plugins';
const handler = new RPCHandler(router, {
strictGetMethodPluginEnabled: false,
plugins: [
new SimpleCsrfProtectionHandlerPlugin()
],
});
Dependency Matrix
Required Modules
@orpc/server@orpc/client
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: orpc-simple-csrf-protection Download link: https://github.com/ali-master/skills/archive/main.zip#orpc-simple-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 620,000+ vetted skills library on demand.