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

Quando usar esta receita

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

Etapas

1

Security Header Checker

Experimente esta ferramenta

Audit existing headers

Prompt: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

Prompt:Generate a strict CSP based on the audit findings, plugging any gaps
3

Grade the CSP

Prompt:Evaluate the generated CSP for A+ grade — check for unsafe directives and missing defaults
4

Align CORS with CSP

Prompt:Generate restrictive CORS headers matching the CSP origins
5

Add integrity protection

Prompt:Generate SRI hashes for all external scripts and stylesheets

Perguntas frequentes

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.

Receitas relacionadas