ToolypetMCP
intermediate5 minutessecurity

Full Security Headers Audit

Complete security headers audit: check all headers, generate missing ones, and evaluate the overall security posture.

security-headersauditcspcorshardening

このレシピの使いどころ

Quarterly security headers audit for compliance and vulnerability prevention. Covers OWASP recommended headers and ensures they work together cohesively.

ステップ

1

Security Header Checker

このツールを試す

Audit existing headers

プロンプト:Check all security headers: X-Frame-Options, X-Content-Type-Options, X-XSS-Protection, Strict-Transport-Security, Referrer-Policy, Permissions-Policy
2

Generate missing CSP

プロンプト:Generate a strict CSP based on the audit findings, plugging any gaps
3

Grade the CSP

プロンプト:Evaluate the generated CSP for A+ grade — check for unsafe directives and missing defaults
4

Align CORS with CSP

プロンプト:Generate restrictive CORS headers matching the CSP origins
5

Add integrity protection

プロンプト:Generate SRI hashes for all external scripts and stylesheets

よくある質問

What security grade should I aim for?

A+ on securityheaders.com. Required headers: CSP, HSTS (with preload), X-Content-Type-Options, X-Frame-Options, Referrer-Policy, and Permissions-Policy.

Can security headers break my site?

Yes, especially CSP. Deploy in report-only mode first. HSTS with preload is permanent — test thoroughly. X-Frame-Options: DENY blocks all iframes including your own embeds.

関連レシピ