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.
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 |