nextjs-proxy-csp-hardening
CommunityHardening Next.js proxy.ts with CSP and nonce
AuthorChristopherAlphonse
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Configures a secure Next.js proxy.ts with per-request nonce, strict CSP, and comprehensive security headers, providing a defendable baseline for production apps and safe migration from middleware.ts.
Core Features & Use Cases
- Enforces per-request nonce for script execution and embeds nonce into response headers.
- Applies a comprehensive Content-Security-Policy with explicit base-uri, form-action, and frame-ancestors directives.
- Supports App Router migrations by providing a ready-to-use proxy.ts scaffold for Next.js projects.
Quick Start
Generate a production-ready proxy.ts configured with nonce-based CSP and security headers for your Next.js App Router project.
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: nextjs-proxy-csp-hardening Download link: https://github.com/ChristopherAlphonse/calphonse-skills/archive/main.zip#nextjs-proxy-csp-hardening 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 510,000+ vetted skills library on demand.