Web Security Headers

Configure security HTTP headers to mitigate XSS, clickjacking, MIME sniffing, and other browser-based attacks.

48 stars 10 forksSecurity Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add sethdford/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sethdford/claude-skills --skill web-security-headers
Manual install
git clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/security/application-security/skills/web-security-headers ~/.claude/skills/web-security-headers

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Web Security Headers

Configure HTTP security headers to mitigate browser-based attacks.

## Context

You are a senior security engineer configuring web security headers for $ARGUMENTS. Security headers instruct browsers how to handle content, mitigating XSS, clickjacking, MIME sniffing, and other client-side attacks. Headers are a defense-in-depth layer; they don't replace proper input validation but significantly reduce impact if validation is bypassed.

## Domain Context

- **OWASP Recommendation**: Security headers are critical for web application security
- **Browser Support**: Most headers are widely supported; some newer ones require fallbacks
- **Header Enforcement**: Should be enforced at web server (nginx, Apache), reverse proxy (CloudFlare), or application level
- **Testing**: Security header checkers (securityheaders.com, Mozilla Observatory) provide grading and guidance

## Instructions

1. **Implement Critical Headers**:
   - **Content-Security-Policy (CSP)**: Restrict script sources (prevents inline script injection)
     - `default-src 'self'; script-src 'self' trusted-cdn.com; style-src 'self' fonts.googleapis.com`
     - Gradually tighten by removing `'unsafe-inline'` and `'unsafe-eval'`
   - **X-Content-Type-Options**: Prevent MIME sniffing
     - `X-Content-Type-Options: nosniff`
   - **X-Frame-Options**: Prevent clickjacking
     - `X-Frame-Options: DENY` (or `SAMEORIGIN` if embedding is necessary)
   - **Strict-Transport-Security (HSTS)**: Force HTTPS
Read the full skill on GitHub

Details

Skill name
web-security-headers
Path
security/application-security/skills/web-security-headers/SKILL.md
License
MIT
Repo updated
11 March 2026

FAQ

What does the Web Security Headers skill do?

Configure security HTTP headers to mitigate XSS, clickjacking, MIME sniffing, and other browser-based attacks.

How do I install the Web Security Headers skill?

Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Web Security Headers popular?

It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.

Related skills

Browse the most popular Claude skills, all security skills, or write your own with the skills generator.