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

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.

संबंधित रेसिपी