csp

Solid

Content Security Policy configuration, nonces, and reporting.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
33
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CSP Skill Expert assistance for Content Security Policy implementation. ## Capabilities - Configure CSP headers - Implement nonces - Set up reporting - Handle inline scripts - Configure strict CSP ## CSP Configuration ```typescript // Next.js middleware const cspHeader = ` default-src 'self'; script-src 'self' 'nonce-${nonce}' 'strict-dynamic'; style-src 'self' 'nonce-${nonce}'; img-src 'self' blob: data:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; report-uri /api/csp-report; `; ``` ## Target Processes - security-hardening - csp-implementation - xss-prevention

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills