check_cors
Sends a preflight OPTIONS request to a URL and reports allowed origins, methods, headers, and security issues to resolve frontend API integration problems.
Instructions
Check if a URL has CORS headers configured. Sends a preflight OPTIONS request and reports allowed origins, methods, headers, and security issues. Useful for debugging frontend API integration problems.
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": {
"url": "<url>"
},
"name": "check_cors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to check for CORS headers (e.g., "https://api.github.com") | |
| origin | No | Origin to send in preflight request (default: "https://example.com") |