37 Audits
🛡️

Content Security Policy Checker

Security Checker

Validates Content-Security-Policy header configuration

Security
20 credits
Per check
~30 seconds
Average runtime
Active
Status

How it works

This checker validates the Content-Security-Policy header for presence and security configuration, flagging policies containing unsafe directives that weaken XSS protection. The checker retrieves the Content-Security-Policy header from HTTP response, analyzes the policy for unsafe directives (unsafe-inline, unsafe-eval), and validates policy syntax and configuration.

What this checker validates

This checker validates the Content-Security-Policy header for presence and security configuration, flagging policies containing unsafe directives that weaken XSS protection. It retrieves the Content-Security-Policy header from HTTP response, analyzes the policy for unsafe directives (unsafe-inline, unsafe-eval), and validates policy syntax and configuration.

Output Documentation

StatusConditionTest Logic
SUCCESSCSP header present and secureCSP header found with no unsafe directives
WARNINGCSP contains unsafe directivesHeader present but contains unsafe-inline or unsafe-eval
FAILMissing CSP headerNo Content-Security-Policy header found

Risks and Considerations

XSS Attacks: Missing or weak CSP policies leave your site vulnerable to cross-site scripting attacks. Data Theft: Malicious scripts can steal user data, session tokens, and sensitive information. Reputation Damage: Security breaches can severely damage your brand reputation and user trust.

Ready to start auditing?

Add this checker to your monitoring setup and start identifying issues on your websites today.

© 2025 37 Audits. All rights reserved. Audit your websites with confidence.

Supported by

Featured on Dofollow.Tools

Made with ❤️ in Floripa