cors_evaluate
Judge an HTTP response against Fetch Standard CORS rules: get allow/block, violated rule IDs, missing headers, and the headers to send instead.
Instructions
Judge one HTTP response against the Fetch Standard CORS check. Returns decision allow|block, the violated rule IDs with their clause references, the headers that are missing, and what to send instead. No network: url is parsed for scheme/host/port only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>",
"url": "<url>",
"response": "<response>",
"is_preflight": "<is_preflight>"
},
"name": "cors_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | target URL; only its origin is used | |
| method | Yes | HTTP request method | |
| origin | No | request Origin; omit or null for a same-origin request | |
| response | Yes | ||
| credentials | No | credentials mode of the request | |
| is_preflight | Yes | is this the preflight response? | |
| request_headers | No | header name -> value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| decision | Yes | ||
| violations | Yes | ||
| missing_headers | Yes | lowercase header names, ASCII-sorted | |
| recommended_headers | Yes | lowercase header name -> value to send instead |