ToolypetMCP
intermediate5 minutessecurity

Web Security Header Audit

Audit your website's security headers, generate a CSP policy, evaluate it, and configure CORS.

security-headerscspcorsaudit

इस रेसिपी का उपयोग कब करें

Run this audit before launching any web application. Security headers protect against XSS, clickjacking, and other common attacks. Many compliance standards require proper header configuration.

चरण

1

Audit existing security headers

प्रॉम्प्ट:Check these security headers: X-Frame-Options: DENY, Strict-Transport-Security: max-age=31536000
2

Create a proper CSP policy

प्रॉम्प्ट:Generate a Content Security Policy allowing scripts from self and Google Analytics
3

Verify the CSP is secure

प्रॉम्प्ट:Evaluate the generated CSP policy for weaknesses
4

Configure CORS properly

प्रॉम्प्ट:Generate CORS headers allowing requests from https://app.example.com

अक्सर पूछे जाने वाले प्रश्न

What's the most important security header?

Content-Security-Policy (CSP) is the most impactful as it prevents XSS attacks. Strict-Transport-Security (HSTS) is also critical for HTTPS enforcement.

How often should I audit security headers?

Audit after every deployment and at least monthly. New third-party scripts or CDN changes may require CSP updates.

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