II.
LibrarySkill overview
Reference · livelib-skill:web-development--csp
csp overview
Content Security Policy configuration, nonces, and reporting.
Attributes
displayName
csp
description
Content Security Policy configuration, nonces, and reporting.
libraryPath
library/specializations/web-development/skills/csp/SKILL.md
specialization
web-development
contentSummary
# 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 = `
Outgoing edges
lib_applies_to_domain1
- domain:web-development·DomainWeb Development
lib_belongs_to_specialization1
- specialization:web-development·Specialization
lib_covers_topic2
- topic:content-security-policy·TopicContent Security Policy (CSP)
- topic:xss-prevention·TopicCross-Site Scripting (XSS) Prevention
lib_involves_role2
- role:security-engineer·RoleSecurity Engineer
- role:frontend-engineer·RoleFrontend Engineer
lib_requires_skill_area2
- skill-area:web-security·SkillAreaWeb Application Security
- skill-area:backend-security·SkillAreaBackend Security
Incoming edges
None.