# CORS Check for URL

> CORS Check for URL is a paid API for AI agents from agent-json-reliability.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Checks whether a given URL's CORS headers allow cross-origin requests from browsers or agents

## Facts

- Endpoint: POST https://agent-json-reliability.onrender.com/v1/url/cors-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cors-check-for-url-d11ce91c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RnNj0kBsBVerNqOP0eFvK

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 cors-check-for-url-d11ce91c -d '<json body>'
```

Example prompt: Can you check if https://api.example.com/data has CORS enabled so I know whether my browser-based app can fetch it directly?

## When to prefer this

Use this endpoint when you need a quick, programmatic check of whether a specific URL permits cross-origin HTTP requests — particularly useful before integrating a third-party API into a browser-based app or agent that runs in a browser context. Prefer this over manual inspection when automating compatibility checks across multiple endpoints.

## Known failure modes

- Target URL is unreachable or returns a non-2xx status, resulting in ok: false
- URL has no CORS headers at all, returning ok: false
- Invalid or malformed URL input causing a request error
- Timeout if the target server is slow to respond

## How this service works

Deterministic JSON repair and JSON Schema validation for AI agents. Free MCP, inspect, validate, repair. Paid POST /v1/json/reliable 0.003 USDC via x402 on Base.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the target URL passes a CORS check, confirming if cross-origin requests are allowed.

## Response schema (JSON Schema)

```json
{
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cors-check-for-url-d11ce91c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-json-reliability.onrender.com](https://www.zero.xyz/host/agent-json-reliability.onrender.com/llms.txt)
