# AISkills402: CORS Config Review

> AISkills402: CORS Config 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-20).

Reviews CORS server configuration or code for the five critical misconfiguration patterns that allow hostile web pages to read private responses, returning findings with codes, locations, risk explanations, and fixes.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/cors-config-review/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-cors-config-review-d46aa7a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7eRMiaEX5CVRS0O5A-bhx

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-cors-config-review-d46aa7a3
```

Example prompt: Can you review this Express CORS middleware for security issues — I want to know if it has any of the classic misconfigurations like a reflected Origin, wildcard with credentials, or the null origin being allowed?

## When to prefer this

Choose this endpoint when you need a focused, deterministic audit of CORS configuration code specifically for the five highest-risk credential-leaking patterns. Prefer it over a general security scanner when you want concise, actionable per-finding output (code + location + danger + fix) without noise from unrelated issues, and when you are working with Express, Flask, nginx, or similar CORS handler configurations.

## Known failure modes

- Input is not a valid CORS configuration or server config block — may return no findings or an error
- Obscure framework-specific CORS wrappers may not be recognized
- Partial or truncated configuration snippets may produce incomplete analysis
- Non-CORS security issues in the submitted code are out of scope and will not be reported

## How this service works

CORS Config Review — Reviews CORS code or server configuration (an Express or Flask handler, an nginx block, a framework setting) for the five mistakes that let a hostile web page read private responses, and lists only those, one line each with a fixed code, the place, why it is dangerous and the fix - or exactly No findings. It catches a request Origin copied into the allow header while cookies are allowed, a wildcard origin together with credentials, the null origin allowed, an origin check b…

## Output

A list of up to five security findings, each on a single line containing: a finding code, the exact location in the submitted configuration, why it is dangerous, and the recommended fix. If no issues are found, 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-cors-config-review-d46aa7a3/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)
