CSP Header Analyzer avatar

CSP Header Analyzer

Pricing

from $4.90 / 1,000 page auditeds

Go to Apify Store
CSP Header Analyzer

CSP Header Analyzer

Deep-analyze Content Security Policy headers and flag unsafe or missing directives.

Pricing

from $4.90 / 1,000 page auditeds

Rating

0.0

(0)

Developer

junipr

junipr

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Categories

Share

Parse supplied Content-Security-Policy headers into directive rows and identify missing or unsafe policy controls.

Inputs

  • inputItems
  • maxDirectives
  • includeReport
  • maxChargeUsd
{
"inputItems": [
{
"url": "https://www.iana.org",
"statusCode": 200,
"headers": {
"content-security-policy": "upgrade-insecure-requests; default-src 'self' https://*.iana.org; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com https://cse.google.com https://clients1.google.com; style-src 'self' 'unsafe-inline' https://www.google.com; child-src 'self' https://www.youtube.com https://clients1.google.com https://cse.google.com https://www.google.com/; img-src 'self' https://data.iana.org https://www.iana.org https://www.google.com https://www.googleapis.com https://clients1.google.com https://*.gstatic.com"
}
}
],
"maxDirectives": 3,
"includeReport": true,
"maxChargeUsd": 1
}

The bundled exact input contains the public Content-Security-Policy response header observed at https://www.iana.org at 2026-07-12T05:03:20Z.

Dataset

The actor emits structured, actor-specific evidence rows. Empty source input, or a comparison with no selected changes, produces no dataset rows.

Billing

This actor uses pay-per-event billing with platform usage included in the configured event prices. Configured events are:

  • actor-start
  • page-audited
  • rule-parsed
  • finding-emitted
  • audit-report-generated

Every dataset row and report artifact is charge-gated. A zero-dollar cap stops before work with no paid output.

Use Cases

  • Find a missing CSP header
  • Flag unsafe-inline in a CSP
  • Flag unsafe-eval in a CSP
  • Review frame-ancestors controls
  • Export a restrictive CSP policy

Limitations

The actor evaluates supplied response headers and does not request pages. It flags common policy risks but does not prove browser-level exploitability or replace CSP deployment testing.