Skip to content
Back to skills

Security Headers Check

ASecurity

Check HTTP security headers on any URL. Grades CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Produces an A-F report with specific missing or misconfigured headers. No signup.

  • 13 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 25, 2026
testinggosecurity

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned October 25, 2026

npx -y skills add Quality-Max/free-qa-skills --skill security-headers-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Headers Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Headers Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/quality-max-security-headers-check/badge)](https://www.skillsdirectory.com/skills/quality-max-security-headers-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-headers-check
description: >
  Check HTTP security headers on any URL. Grades CSP, HSTS, X-Frame-Options,
  X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Produces
  an A-F report with specific missing or misconfigured headers. No signup.
---

# Security Headers Check

Grade the HTTP security headers of any website. No signup required.

## Prerequisites

- **Playwright MCP** (comes with Claude Code)

## Trigger

- "Check security headers on https://..."
- "Security headers scan mysite.com"
- "Is my site missing any security headers?"

## Workflow

1. Navigate to the URL using `mcp__playwright__browser_navigate`
2. Capture network response headers using `mcp__playwright__browser_network_requests`
3. Check each header category below against the captured response headers

### Headers to Check

**Content-Security-Policy (CSP)**
- Should be present
- Should not contain `unsafe-inline` without a nonce or hash
- Should not contain `unsafe-eval`
- Should not use wildcard `*` in `script-src` or `object-src`

**Strict-Transport-Security (HSTS)**
- Should be present on HTTPS sites
- `max-age` should be ≥ 31536000 (1 year)
- Should include `includeSubDomains`
- `preload` is a bonus

**X-Frame-Options**
- Should be `DENY` or `SAMEORIGIN`
- (Note: CSP `frame-ancestors` supersedes this; award credit if CSP has it)

**X-Content-Type-Options**
- Should be `nosniff`

**Referrer-Policy**
- Should be present
- Recommended values: `strict-origin-when-cross-origin`, `no-referrer`, `same-origin`
- Penalize: `unsafe-url`, missing entirely

**Permissions-Policy**
- Should be present (formerly Feature-Policy)
- Should restrict at minimum: `camera`, `microphone`, `geolocation`

4. Grade the site:

| Score | Grade | Meaning |
|-------|-------|---------|
| 6/6   | A     | All headers present and well-configured |
| 5/6   | B     | One missing or weak header |
| 3-4/6 | C     | Several gaps — moderate risk |
| 1-2/6 | D     | Most headers missing |
| 0/6   | F     | No security headers at all |

5. Output:

```
## Security Headers Report: [URL]

**Grade: C** (3/6 headers configured correctly)

### Issues
1. [MISSING] Content-Security-Policy
   No CSP found. XSS attacks are not mitigated at the header level.

2. [WEAK] Strict-Transport-Security
   Found: max-age=3600
   Issue: max-age too short (3600s). Minimum recommended: 31536000 (1 year)
   Fix:   Strict-Transport-Security: max-age=31536000; includeSubDomains

3. [MISSING] Permissions-Policy
   No Permissions-Policy found. Browser features unrestricted.

### Passed
- X-Frame-Options: SAMEORIGIN ✓
- X-Content-Type-Options: nosniff ✓
- Referrer-Policy: strict-origin-when-cross-origin ✓

### Quick Fix (copy-paste for most servers)
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Permissions-Policy: camera=(), microphone=(), geolocation=()

**Want automated security regression tests?** Try QualityMax — qualitymax.io
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.