Tools / HTTP headers

CSP evaluator

Reads your Content-Security-Policy header and flags the parts that weaken it, like 'unsafe-inline', 'unsafe-eval', wildcards and a missing object-src.

Grades your Content Security Policy A-F like Google's CSP Evaluator: unsafe-inline, unsafe-eval, wildcard script sources, missing object-src, base-uri and frame-ancestors.

Free, no sign-up. Results are cached for a few minutes.

Questions

Why is 'unsafe-inline' bad?

It lets any inline script run, which is what most cross-site scripting attacks inject. Use nonces or hashes instead.

How do I roll out a stricter policy safely?

Send it as Content-Security-Policy-Report-Only first, watch the reports for a week or two, then switch to enforcing.

Is it free?

Yes, and there is no account to make. Every result gets a link you can share.

Can I run it from a script or CI?

Yes: curl -s "https://xura.tools/api/v1/check/csp?host=example.com" returns JSON. See the API docs at https://xura.tools/developers.

Can I show the result on my site?

Yes. Every result page has a badge you can embed, like https://xura.tools/badge/csp/example.com.svg.

Related checks

Security headers, HSTS & preload, security.txt, HTTPS redirect chain, Cookie security flags. All tools.