CORS check
cors-checkSends a GET with an Origin header (and an OPTIONS preflight for non-simple methods, custom headers or credentials) to a public URL and reports the Access-Control-* headers with an allowed/blocked verdict. Returns { url, finalUrl, origin, status, preflight: { status } | null, headers: { acao, acac, acam, acah, vary }, allowed, issues } Price: 2 credits (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL. Private, loopback, link-local, metadata and our own hosts are refused. | |
| method | No | Method the browser call would use; non-simple methods trigger a preflight. | GET |
| origin | No | Origin the browser would send, e.g. https://app.example.com. | https://example.com |
| credentials | No | Whether the call sends cookies or auth (credentials: include). | |
| requestHeaders | No | Request header names the call would send (triggers a preflight when non-empty). |