# AISkills402: CSP Header Review

> AISkills402: CSP Header Review is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Reviews a Content-Security-Policy header and lists only the security gaps that allow injected script execution or page framing, one finding per line with a code, directive, explanation, and fix.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/csp-header-review/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-csp-header-review-5faac5ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EBBR4kRmpW5pY1zBp-BTf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aiskills402-csp-header-review-5faac5ef
```

Example prompt: Review this Content-Security-Policy header for security gaps that could let injected scripts run or allow the page to be framed: "default-src 'self'; script-src 'self' 'unsafe-inline'; object-src 'none'"

## When to prefer this

Choose this endpoint when you need a focused, line-by-line audit of a single Content-Security-Policy header specifically for script injection and framing vulnerabilities, rather than a general web security scanner or full HTTP response header analysis. It is ideal for CI/CD pipelines, pre-deployment checks, or rapid triage after a security incident where you already have the CSP string and need actionable, coded findings fast.

## Known failure modes

- Malformed or missing CSP header value returns an error or empty analysis
- Extremely long or complex policies with many directives may produce truncated output
- Policies using nonce-based or hash-based allowlists may be misclassified if context is incomplete
- Non-CSP header strings passed as input may yield unexpected or meaningless findings

## How this service works

CSP Header Review — Reviews ONE Content-Security-Policy header, with any note pasted beside it, and lists only the gaps that let injected script run or let the page be framed, one line each with a fixed code, the directive, why it hurts and the fix - or exactly No findings. It catches unsafe-eval or unsafe-inline in the script directive, a star, a data source or a bare scheme as a script source, a policy with neither object-src nor a default-src, a missing base-uri, a missing frame-ancestors, a…

## Output

A list of security findings, one per line, each containing a fixed finding code, the affected CSP directive, an explanation of why the configuration is dangerous, and a concrete fix. If no exploitable gaps are detected, the endpoint returns exactly 'No findings'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-csp-header-review-5faac5ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
