dossier_cors
Check whether a domain allows cross-origin requests by sending a preflight OPTIONS request. Specify origin and method to simulate a precise preflight, or rely on defaults. Returns access-control-* headers on success, or an error.
Instructions
Send a CORS preflight OPTIONS request to https:/// and return the access-control-* response headers. Use to verify CORS policy for a specific origin-method pair, or to check whether a domain allows cross-origin requests; provide origin and method to simulate a precise preflight, or omit to use defaults (origin: https://drwho.me, method: GET). Single OPTIONS request via fetch, 5 s timeout. Returns a CheckResult: on success, {status:"ok", headers:{access-control-allow-origin,...}}; on failure, {status:"error", reason}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Public FQDN, e.g. example.com. Must be resolvable on the public internet; IPs, ports, paths, and protocol prefixes are rejected. | |
| origin | No | Origin header value to include in the preflight, e.g. https://app.example.com. Defaults to https://drwho.me if omitted. | |
| method | No | Access-Control-Request-Method header value, e.g. POST or PUT. Defaults to GET if omitted. |