CORS Checker
Check if a URL responds with proper CORS headers
Parameters
| name | in | type | required | description |
|---|---|---|---|---|
url |
query | string | required | URL to check for CORS headers |
origin |
query | string | optional |
Origin to send in the preflight request
default https://example.com
|
Request
Send your key in the X-API-Key header. More languages and patterns live on the
code examples page.
curl -s "https://apixies.io/api/v1/check-cors?url=https%3A%2F%2Fapi.github.com" \ -H "X-API-Key: YOUR_API_KEY"
Response
The result sits under data in the standard envelope. See the
response format guide for errors and status codes.
returns
- data.cors_enabled
- True when the server sends Access-Control-Allow-Origin.
- data.headers
- The CORS headers the server sent, null when missing.
- data.analysis
- Allowed origins, methods and headers, plus security notes.
- data.preflight_status
- HTTP status of the OPTIONS preflight request.
{
"status": "success",
"http_code": 200,
"code": "SUCCESS",
"message": "CORS check completed",
"data": {
"url": "https://api.github.com",
"cors_enabled": true,
"preflight_status": 204,
"headers": {
"access_control_allow_origin": "*",
"access_control_allow_methods": "GET, POST, PUT, DELETE, OPTIONS",
"access_control_allow_headers": "Content-Type, Authorization, Accept",
"access_control_max_age": "86400",
"access_control_allow_credentials": null,
"access_control_expose_headers": null
},
"analysis": {
"allows_any_origin": true,
"allows_credentials": false,
"allowed_methods": [
"GET",
"POST",
"PUT",
"DELETE",
"OPTIONS"
],
"allowed_headers": [
"Content-Type",
"Authorization",
"Accept"
],
"max_age_seconds": 86400,
"security_notes": [
"Wildcard origin (*) allows any website to make requests",
"Credentials are not allowed, which is correct when using wildcard origin"
]
}
}
}
Authentication and limits
This endpoint needs an API key. Use the sandbox ("try it" above) to test it without registering. See the authentication guide for details.
Standard rate limits apply to this endpoint.
related endpoints
More documentation
Get a free API key
A temporary key takes one click and no signup. Register and you get 75 requests/day. Free tier is for development & small projects.